Returns an array of departments for the given organisation
- Sandbox APIhttps://api-sandbox.lawvu.com/account-apis/v1/organisations/{organisationId}/departments
- Production APIhttps://api.lawvu.com/account-apis/v1/organisations/{organisationId}/departments
const organisationId = 'YOUR_organisationId_PARAMETER';
const resp = await fetch(
`https://api-sandbox.lawvu.com/account-apis/v1/organisations/${organisationId}/departments`,
{method: 'GET'}
);
const data = await resp.text();
console.log(data);Response
[
{
"id": 0,
"name": "string",
"parentId": 0,
"deletedDateUtc": "2019-08-24T14:15:22Z"
}
]