List Departments

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Minimum Plan Required: Comp

Sample Response

{
    "data": [
        {
            "id": 7890,
            "company_id": 1234,
            "location_id": 4569,
            "name": "FOH",
            "default": false,
            "deleted": null,
            "created": "2021-10-19T22:59:15+00:00",
            "modified": "2021-10-20T17:06:12+00:00"
        },
        {
            "id": 7891,
            "company_id": 1234,
            "location_id": 4569,
            "name": "Kitchen",
            "default": false,
            "deleted": null,
            "created": "2021-10-19T22:59:15+00:00",
            "modified": "2021-10-19T22:59:15+00:00"
        }
    ],
    "meta": {
        "cursor": {
            "current": "eyJsaW1pdCI6MTAwLCJvZmZzZXQiOjB9",
            "prev": null,
            "next": null,
            "count": 2
        }
    },
    "object": "departments"
}
Path Params
int64
required

Company ID

Query Params
string
^\d{4}-\d{2}-\d{2}$

Return departments that have been modified since the specified date. Format YYYY-MM-DD

string

Cursor for the next or previous page of results.

int64

The number of results desired per page.

int64

Return departments that match the provided location ID

Headers
string
^\d{4}-\d{2}-\d{2}$

7shifts API version

uuid

Company GUID

string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
application/problem+json