API Unlock Room
Revision as of 13:58, 14 April 2020 by IVSWikiBlue (talk | contribs) (Created page with "This API call will unlock the specified room. ===Resource URL=== <pre>http://valt.example.com/api/v3/rooms/{roomid}/unlock</pre> ''Replace {roomid} with the actual id number...")
This API call will unlock the specified room.
Contents
Resource URL
http://valt.example.com/api/v3/rooms/{roomid}/unlock
Replace {roomid} with the actual id number of the room. Rooms are numbered sequentially when added to VALT.
Resource Information
Method | POST |
Headers | Content-Type:application/json |
Response Type | JSON |
Authentication Required | Yes |
Parameters
No parameters can be passed to this call.
Response
Code | Reason |
---|---|
200 | Room Locked Successfully |
400 | Invalid Request (see response for details) |
401 | Unauthorized |
404 | Room ID Not Found |
data | |
---|---|
id | ID number for the room that was unlocked. |
locked_by | ID number of the user that locked the room. (Should always be null if successful) |
Examples
Request
https://ivstest1.ad.ipivs.com/api/v3/rooms/59/unlock?access_token=e82632d19c523678fea3d1016c6df9e9
Successful Response
Sample response is shown with line breaks to make it more readable. Actual responses will not include line breaks.
{ "data":{ "id": 59, "locked_by": null } }
Failure Response
Sample response is shown with line breaks to make it more readable. Actual responses will not include line breaks.
{ "data":{ "message": "This room is not locked." }, "code": 400 }