{"id":2927,"date":"2020-08-14T11:02:19","date_gmt":"2020-08-14T14:02:19","guid":{"rendered":"https:\/\/www.flulpycrea.com.ar\/wp\/?page_id=2927"},"modified":"2023-07-01T18:08:18","modified_gmt":"2023-07-01T21:08:18","slug":"commandclass-_setreservation","status":"publish","type":"page","link":"https:\/\/www.flulpycrea.com.ar\/wp\/documentacion\/api\/commandclass-_setreservation\/","title":{"rendered":"COMMANDCLASS _SETRESERVATION"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Purpose:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It allows to place a reserve in a machine for a given date and time period under this account.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong><strong><strong>Minimum version for the target server required:<\/strong><\/strong><\/strong>&nbsp;v17.0.52.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Output:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>CommandClass = _SETRESERVATION<\/li>\n\n\n\n<li>Param1 = target CyberName.<\/li>\n\n\n\n<li>Param2 = Session Token.<\/li>\n\n\n\n<li>Param3 = PCNameID (machine name as figure in the sketch, see function&nbsp;<a rel=\"noreferrer noopener\" href=\"https:\/\/www.flulpycrea.com.ar\/wp\/api-demandmap\/\" target=\"_blank\">DemandMap<\/a>).<\/li>\n\n\n\n<li>Param4 = &#8220;yyyy-mm-dd hh:mm:ss&#8221; + chr$(1) + &#8220;period&#8221;<br><br>About Param4: Real Date &amp; Time for the start of the reserve, in format yyyy-mm-dd hh:mm:ss, and is local time to the target server. While the period value is in time format hh:mm:ss, chr$(1) separator can be URLd as %01.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Output:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">[{\u201cResponseClass\u201d: \u201cERROR\u201d, \u201cParam1\u201d: \u201cmessage\u201d, \u2026 }]<br>[{\u201cResponseClass\u201d: \u201cOK\u201d}]<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Example of usage:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/wingamer.ar\/ApiMasterControl\/Comm.php?CommandClass=_SETRESERVATION&amp;Param1=flulpycrea&amp;Param2=SessionToken&amp;Param3=PC01&amp;Param4=2020%2D10%2D15%2022%3A30%3A00%0101%3A00%3A00\">https:\/\/wingamer.ar\/ApiMasterControl\/Comm.php?CommandClass=_SETRESERVATION&amp;Param1=flulpycrea&amp;Param2=SessionToken&amp;Param3=PC01&amp;Param4=2020%2D10%2D15%2022%3A30%3A00%0101%3A00%3A00<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The example will place a reserve at 22:30, October 15th of 2020, in the PC01 and the reserve period is for just one hour.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Purpose: It allows to place a reserve in a machine for a given date and time period under this account.<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":2693,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-2927","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.flulpycrea.com.ar\/wp\/wp-json\/wp\/v2\/pages\/2927","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.flulpycrea.com.ar\/wp\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.flulpycrea.com.ar\/wp\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.flulpycrea.com.ar\/wp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.flulpycrea.com.ar\/wp\/wp-json\/wp\/v2\/comments?post=2927"}],"version-history":[{"count":10,"href":"https:\/\/www.flulpycrea.com.ar\/wp\/wp-json\/wp\/v2\/pages\/2927\/revisions"}],"predecessor-version":[{"id":4460,"href":"https:\/\/www.flulpycrea.com.ar\/wp\/wp-json\/wp\/v2\/pages\/2927\/revisions\/4460"}],"up":[{"embeddable":true,"href":"https:\/\/www.flulpycrea.com.ar\/wp\/wp-json\/wp\/v2\/pages\/2693"}],"wp:attachment":[{"href":"https:\/\/www.flulpycrea.com.ar\/wp\/wp-json\/wp\/v2\/media?parent=2927"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}