- Overview
- Important concepts
- Authentication
- Enrollment process
- End-user app design
- Monitoring / Telemetry
- Control
- Change log
- Mobile App API
- Cloud API
- Sites
- Commissioning
- Sessions
- Commands
- Programs
- Telemetry
- Webhooks
Update Site
Cloud Mock
https://mock.apidog.com/m1/479670-0-default
Cloud Mock
https://mock.apidog.com/m1/479670-0-default
PATCH
/v1/site/{siteId}
sites
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Path Params
siteId
string
required
Body Params application/json
first_name
string | null
optional
Example:
John
last_name
string | null
optional
Example:
Doe
company_name
string | null
optional
Example:
ABC Co.
email
string <email> | null
optional
state_code
enum<string> | enum<null>
State code
Allowed values:
AKALARAZCACOCTDEFLGAHIIAIDILINKSKYLAMAMDMEMIMNMOMSMTNCNDNENHNJNMNVNYOHOKORPAPRRISCSDTNTXUTVAVTWAWIWVWY
city
string | null
City
Example:
San Francisco
zip_code
string | null
Zip Code
Examples:
888008880188802
street_address
string | null
Street Address
Example:
123 Main St
street_address2
string | null
Street Address2
service_account_id
string | null
Service Account Id
Example:
deprecated
Example
{
"first_name": "John",
"last_name": "Doe",
"company_name": "ABC Co.",
"email": "[email protected]",
"state_code": "AK",
"city": "San Francisco",
"zip_code": "88800",
"street_address": "123 Main St",
"street_address2": "string",
"service_account_id": "deprecated"
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PATCH 'https://mock.apidog.com/m1/479670-0-default/v1/site/' \
--header 'Content-Type: application/json' \
--data-raw '{
"first_name": "John",
"last_name": "Doe",
"company_name": "ABC Co.",
"email": "[email protected]",
"state_code": "AK",
"city": "San Francisco",
"zip_code": "88800",
"street_address": "123 Main St",
"street_address2": "string",
"service_account_id": "deprecated"
}'
Responses
🟢200OK
application/json
Body
first_name
string | null
optional
Example:
John
last_name
string | null
optional
Example:
Doe
company_name
string | null
optional
Example:
ABC Co.
email
string <email> | null
optional
state_code
enum<string> | enum<null>
State code
Allowed values:
AKALARAZCACOCTDEFLGAHIIAIDILINKSKYLAMAMDMEMIMNMOMSMTNCNDNENHNJNMNVNYOHOKORPAPRRISCSDTNTXUTVAVTWAWIWVWY
city
string | null
City
Example:
San Francisco
zip_code
string | null
Zip Code
Examples:
888008880188802
street_address
string | null
Street Address
Example:
123 Main St
street_address2
string | null
Street Address2
service_account_id
string | null
Service Account Id
Example:
deprecated
Example
{
"first_name": "John",
"last_name": "Doe",
"company_name": "ABC Co.",
"email": "[email protected]",
"state_code": "AK",
"city": "San Francisco",
"zip_code": "88800",
"street_address": "123 Main St",
"street_address2": "string",
"service_account_id": "deprecated"
}
🟠400Invalid input
🟠404Record not found