Skip to content

Get departments

Request

Returns an array of departments for the given organisation

Path
organisationIdinteger, (int32)required

The organisation to get 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);

Responses

OK

Body
Array [
idinteger, (int32)
namestring or null
parentIdinteger or null, (int32)
deletedDateUtcstring or null, (date-time)
]
Response
[
  {
    "id": 0,
    "name": "string",
    "parentId": 0,
    "deletedDateUtc": "2019-08-24T14:15:22Z"
  }
]