List the departments, locations and other units of this workspace, and their kinds. Read only. Use a unit id as org_unit_id on a task
GET
https://app.softsolz.uk/api/v1/services/tasks/org-unitsRecent Requests
Kept only in this browserTimeStatusTook
Send a request with Try it to see it here.
Headers
AuthorizationstringrequiredBearer token: Bearer sk_live_... (or sk_test_... for sandbox). A login token will not work here.
Response
Response Body
kindsarray of objectsKinds of unit, for example Department.unitsarray of objectsEvery active unit, parents before children.Request
curl --request GET \ --url https://app.softsolz.uk/api/v1/services/tasks/org-units \ --header 'Authorization: Bearer sk_live_your_key'Credentials
Sent as a Bearer token and used in the samples above and in Try it. Kept only in this browser tab until you close it. Use an sk_test_ key to stay in your sandbox.
Response · 200
{ "data": { "kinds": [ { "id": 2, "label": "Department", "plural_label": "Departments", "sort_order": 1 } ], "units": [ { "id": 9, "kind_id": 2, "parent_id": null, "name": "North", "code": "your-code", "depth": 0, "path_ids": [ 9 ], "timezone": "your-timezone", "is_active": true, "member_count": 1, "sort_order": 1 } ] }}