Sites
Returns details for a specific site.
Autorisierungen
AuthorizationstringErforderlich
Pfadparameter
uuidstring · uuidErforderlich
Antworten
200
Successful Response
application/json
uuidstring · uuidErforderlich
namestringErforderlich
422
Validation Error
application/json
get/v2/sites/{uuid}
GET /api/v2/sites/{uuid} HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
{
"uuid": "123e4567-e89b-12d3-a456-426614174000",
"name": "text"
}Delete a site
Autorisierungen
AuthorizationstringErforderlich
Pfadparameter
uuidstring · uuidErforderlich
Antworten
204
Site successfully deleted.
Kein Inhalt
400
Returned e.g. when the Site has SPARKs associated with it.
404
Site not found.
422
Validation Error
application/json
delete/v2/sites/{uuid}
DELETE /api/v2/sites/{uuid} HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
Kein Inhalt
Update details of a specific site.
Autorisierungen
AuthorizationstringErforderlich
Pfadparameter
uuidstring · uuidErforderlich
Body
namestring · min: 1Optional
Antworten
200
Successful Response
application/json
anyOptional
422
Validation Error
application/json
patch/v2/sites/{uuid}
PATCH /api/v2/sites/{uuid} HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 15
{
"name": "text"
}Kein Inhalt
Returns a list of physical production sites available in your organization.
Autorisierungen
AuthorizationstringErforderlich
Abfrageparameter
cursorstringOptional
limitinteger · min: 1 · max: 1000OptionalDefault:
Caps the page size. Defaults to 1000, which is also the maximum; a value below 1 or above 1000 is rejected.
1000Antworten
200
Successful Response
application/json
422
Validation Error
application/json
get/v2/sites
GET /api/v2/sites HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
{
"data": [
{
"uuid": "123e4567-e89b-12d3-a456-426614174000",
"name": "text"
}
],
"metadata": {
"next_cursor": "text"
}
}Create a site.
Autorisierungen
AuthorizationstringErforderlich
Body
namestringErforderlich
Antworten
201
Successful Response
application/json
uuidstring · uuidErforderlich
namestringErforderlich
422
Validation Error
application/json
post/v2/sites
POST /api/v2/sites HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 15
{
"name": "text"
}{
"uuid": "123e4567-e89b-12d3-a456-426614174000",
"name": "text"
}Zuletzt aktualisiert