Guest accounts are used to provide additional logins for RADIUS/RFID etc. authentication/the check-in API.
GET https://:subdomain.cobot.me/api/guest_accounts
Returns a list of guest accounts of the space.
GET https://co-up.cobot.me/api/guest_accounts
Response:
[ { "id": "358bc2fd30c7bb0000a72ef786cc612b", "login": "joe", "expires_after": "2017/01/05 12:45:00 +0000" } ]
GET https://:subdomain.cobot.me/api/guest_accounts/:id
Returns a single guest account of the space.
GET https://co-up.cobot.me/api/guest_accounts/dce8ca410400c427cb4a3262e6874c9f
Response:
{ "id": "358bc2fd30c7bb0000a72ef786cc612b", "login": "joe", "expires_after": "2017/01/05 12:45:00 +0000" }
POST https://:subdomain.cobot.me/api/guest_accounts
Creates a guest account with the given login/password and optional expiration.
POST https://co-up.cobot.me/api/guest_accounts
Body:
{ "login": "joe", "password": "liyvasfiyfg4(lkbnsSS9#", "expires_after": "2018/01/05 12:45:00 +0000" }
Response:
{ "id": "358bc2fd30c7bb0000a72ef786cc612b", "login": "joe", "expires_after": "2018/01/05 12:45:00 +0000" }
Returns 201 on success.
DELETE https://:subdomain.cobot.me/api/guest_accounts/:id
DELETE https://co-up.cobot.me/api/guest_accounts/358bc2fd30c7bb0000a72ef786cc612b
Returns 204 and no body.