Skip to content

List departments
deprecated

Request

This endpoint lists departments of a company.

Security
Bearer
Path
companyIdstring, (uuid)required

Identifier for company.

Example:4974a66b-7493-4f41-908c-58ba81093947
Query
externalIdstring

External id of the department.

Example:externalId=department-external-id
curl -i -X GET \
  'https://api-ext-sboxmeta.partners.spotnana.com/v2/companies/4974a66b-7493-4f41-908c-58ba81093947/departments?externalId=department-external-id' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

OK

Bodyapplication/json
lengthinteger, (int32)
elementsArray of objects(Reference object containing uuid and name of the entity.)

List of references containing id and name.

totalNumResultsinteger, (int32)

Total number of results

Response
{ "length": 0, "elements": [ { … } ], "totalNumResults": 0 }