updateSiteGuestAuthorization
Update Guest Authorization
Preferred authentication method for automation and integrations. Send the API token in the HTTP Authorization header.
Format:
Authorization: Token {apitoken}
Notes:
- An API token generated for a specific admin has the same privileges as that admin
- An API token is automatically removed if it is not used for more than 90 days
- SSO admins cannot generate admin API tokens. Use organization API tokens when scoped Org/Site privileges are needed.
In: header
Path Parameters
uuid^[0-9a-fA-F]{12}$Request Body
application/json
Request Body
Guest authorization record at site scope
Whether the guest is currently authorized
trueOptional company name provided by the guest during registration
Optional email address provided by the guest during registration
emailOptional custom field 1 value provided by the guest during registration
Optional custom field 2 value provided by the guest during registration
Optional custom field 3 value provided by the guest during registration
Optional custom field 4 value provided by the guest during registration
Authorization duration, in minutes. Default is 1440 minutes (1 day), maximum is 259200 (180 days)
0 <= value <= 2592001440Response Body
curl -X PUT "https://example.com/api/v1/sites/000000ab-00ab-00ab-00ab-0000000000ab/guests/0000000000ab" \ -H "Content-Type: application/json" \ -d '{}'{ "authorized": true, "authorized_expiring_time": 0, "authorized_time": 0, "company": "string", "email": "user@example.com", "field1": "string", "field2": "string", "field3": "string", "field4": "string", "mac": "string", "minutes": 0, "name": "string"}