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

Authorizations

Authorization
string
header
required

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

Body

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

Response

Successful response

id
string
required
name
string
required
createdAt
string
required
updatedAt
string
required