Skip to content

Department

Departments can be queried using the regular query-endpoint.

All endpoints require ADMIN or DATA_MANAGER scope.

GET /api/department/{departmentId}/access

Request

Path parameters

  • departmentId ID of department

Response

A list of users and departments and their access type:

[{
"isMember": boolean,
"accessType": "Read" | "Write",
"userID": string,
"user": object
}]

POST /api/department/{departmentId}/access

Add or update access to a department and all associated entities.

Request

Path parameters

  • departmentId ID of department

Body

{
"accessType": "Read" | "Write",
"userID": string, // set userID or accessDepartmentID, not both
"accessDepartmentID": string
}

DELETE /api/department/{departmentId}/access/user/{userID}

Remove access for a specific user.

Request

Path parameters

  • departmentId ID of department
  • userID ID of user to remove

DELETE /api/department/{departmentId}/access/department/{accessDepartmentID}

Remove access for a department.

Request

Path parameters

  • departmentId ID of department
  • accessDepartmentID ID of the access department to remove

DELETE /api/department/{departmentId}

Delete a department.

Request

Path parameters

  • departmentId ID of department