List departments

This method lists all departments

Try this request in your browser

/api/ /departments/list

Headers

X-API-Token

The request output will be shown here...

URL

https://api.natterly.com/api/v1/departments/list

Access

Must be authenticated as a user. If not authorised, a MustBeAuthenticated error will be returned.

Parameters

This action doesn't support any parameters.

Errors

There are no action-specific errors which can be raised.

Response Data

This action will return an array of department structures.

You'll only receive basic attributes for this structure. You'll receive expansions for site_ids.