Site

Adds a new site. Returns status and if successful, the site including the id.

post

Update an existing site.

Authorizations
authorizationstringRequired

JWT Authorization header using the Bearer scheme. Example: 'Bearer {token}'

Body
Responses
chevron-right
200

A successful response.

application/json
post
/gateway/v1/site

Updates the site with the given id. If any change has happened on the object in between, this call should fail. previous_update_time must be set to the last available site's update time. This ensures that the object hasn't updated in between. Returns status and the modified site.

patch

Update an existing site.

Authorizations
authorizationstringRequired

JWT Authorization header using the Bearer scheme. Example: 'Bearer {token}'

Body
lastUpdatedstring · date-timeOptional
Responses
chevron-right
200

A successful response.

application/json
patch
/gateway/v1/site

List all sites, optionally filtered by site_ids provided. Returns all non-deleted sites for org if no arguments provided. Pagination.Ordering.FieldName Options: "id", "created_at", "updated_at", "name", "status", "last_alive".

get

List all configured sites.

Authorizations
authorizationstringRequired

JWT Authorization header using the Bearer scheme. Example: 'Bearer {token}'

Query parameters
siteIdsinteger · uint64[]Optional
pagination.offsetinteger · int64Optional
pagination.limitinteger · int64Optional
pagination.totalCountinteger · int64Optional
pagination.ordering.fieldNamestringOptional
pagination.ordering.descendingbooleanOptional
Responses
chevron-right
200

A successful response.

application/json
get
/gateway/v1/sites

Delete a site by ID

delete

Deletes the site with the specified ID and all associated resources

Authorizations
authorizationstringRequired

JWT Authorization header using the Bearer scheme. Example: 'Bearer {token}'

Path parameters
siteIdinteger · uint64Required

ID of the site to delete

Responses
chevron-right
200

Site deleted successfully

application/json
delete
/gateway/v1/site/{siteId}

Last updated

Was this helpful?