curl --request POST \
--url https://api.cadanapay.com/v1/businesses/{businessId}/departments \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"data": [
"Engineering",
"Sales"
]
}
'{
"data": [
{
"id": "8ef9a712-cdae-4110-b1ea-9ba95abbee6e",
"name": "Engineering"
}
]
}Create a department
curl --request POST \
--url https://api.cadanapay.com/v1/businesses/{businessId}/departments \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"data": [
"Engineering",
"Sales"
]
}
'{
"data": [
{
"id": "8ef9a712-cdae-4110-b1ea-9ba95abbee6e",
"name": "Engineering"
}
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Required when using a Platform API token. The tenant key identifying which business to operate on.
The unique identifier for the business
["Engineering", "Sales"]create departments response
Show child attributes