SitesGuests

updateSiteGuestAuthorization

PUT
/api/v1/sites/{site_id}/guests/{guest_mac}

Update Guest Authorization

Authorization

Authorization<token>

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

site_id*string
Formatuuid
guest_mac*string
Match^[0-9a-fA-F]{12}$

Request Body

application/json

Request Body

Guest authorization record at site scope

authorized?boolean

Whether the guest is currently authorized

Defaulttrue
company?string

Optional company name provided by the guest during registration

email?string

Optional email address provided by the guest during registration

Formatemail
field1?string

Optional custom field 1 value provided by the guest during registration

field2?string

Optional custom field 2 value provided by the guest during registration

field3?string

Optional custom field 3 value provided by the guest during registration

field4?string

Optional custom field 4 value provided by the guest during registration

minutes?integer

Authorization duration, in minutes. Default is 1440 minutes (1 day), maximum is 259200 (180 days)

Range0 <= value <= 259200
Default1440

Response 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"}