PerfexCRM icon

PerfexCRM

Interact with PerfexCRM API

Actions181

Staff → Get Departments

AI-generated

Summary

Retrieve the list of departments associated with a specified staff member.

Inputs

  • Staff ID (required) — The ID of the staff member whose departments to retrieve.

Output shape

a list of department objects associated with the given staff member

Returns the departments directly in the response data under the 'data' property. The response is paginated internally but this operation returns all departments for the given staff ID.

Examples

Example 1: Fetch departments for staff member with ID '123'

Set the 'Staff ID' parameter to '123' for the 'Get Departments' operation under the 'Staff' resource.

Discussion