Skip to main content
PUT
/
sites
/
{id}
Update site
curl --request PUT \
  --url https://app.azalt.co/api/v1/sites/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "country": "<string>",
  "city": "<string>",
  "address": "<string>",
  "unlocode": "<string>",
  "longitude": 123,
  "latitude": 123,
  "numberOfEmployees": 123,
  "floorArea": 123,
  "tags": [
    "<string>"
  ],
  "metadata": {}
}
'
{
  "id": "<string>",
  "name": "<string>",
  "createdAt": "<string>",
  "updatedAt": "<string>",
  "parentSiteId": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Body

application/json
name
string
required
Minimum string length: 1
country
string | null
city
string | null
address
string | null
unlocode
string | null
longitude
number | null
latitude
number | null
numberOfEmployees
number | null
floorArea
number | null
tags
string[] | null
metadata
object

Response

Successful response

id
string
required
name
string
required
createdAt
string
required
updatedAt
string
required
parentSiteId
string | null
required