Skip to main content
POST
/
units
Create unit
curl --request POST \
  --url https://app.azalt.co/api/v1/units \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "isCommon": false
}
'
{
  "id": "<string>",
  "name": "<string>",
  "organizationId": "<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
isCommon
boolean
default:false

Response

Successful response

id
string
required
name
string
required
organizationId
string | null
required