OrgPerson
Manage org persons, which represent the assignment of a person to an organizational unit (OrgUnit) and optionally a role (OrgRole).
You can create, update, delete, and search for org persons with advanced filtering and pagination.
- Version
- 2.0.0
- OpenAPI version
- 3.0.0
Operations
Section titled “Operations” POST /v2/org-person/index
Returns a paginated and filterable list of org persons.
Use POST to allow complex filters via JSON payload.
Request Body
Section titled “Request Body ”Parameters for searching org persons
object
object
Example
{ "filter": { "org_unit_id": "123e4567-e89b-12d3-a456-426655440000" }, "per-page": 20, "page": 1, "sort": "person_id"}
Responses
Section titled “ Responses ”List of org persons
object
{ "org_person_id": "122b7448dce72057574d59f93d456e54", "person_id": "db7d0826-e572-4f7b-b4a7-69e7534b1634", "org_unit_id": "123e4567-e89b-12d3-a456-426655440000", "org_role_id": "223e4567-e89b-12d3-a456-426655440000"}
Example
{ "org_person_id": "122b7448dce72057574d59f93d456e54", "person_id": "db7d0826-e572-4f7b-b4a7-69e7534b1634", "org_unit_id": "123e4567-e89b-12d3-a456-426655440000", "org_role_id": "223e4567-e89b-12d3-a456-426655440000"}
Headers
Section titled “Headers ”Current page
Total number of pages
Number of items per page
Total number of items
GET /v2/org-person/view/{id}
Retrieve an org person by its unique ID.
Path Parameters
Section titled “Path Parameters ”ID of the org person to retrieve
Responses
Section titled “ Responses ”Org person found
object
Example
{ "org_person_id": "122b7448dce72057574d59f93d456e54", "person_id": "db7d0826-e572-4f7b-b4a7-69e7534b1634", "org_unit_id": "123e4567-e89b-12d3-a456-426655440000", "org_role_id": "223e4567-e89b-12d3-a456-426655440000"}
Org person not found
create
Section titled “create” POST /v2/org-person/create
Create a new org person by providing the required details.
Request Body required
Section titled “Request Body required ”Org person object to be created
object
Example
{ "person_id": "db7d0826-e572-4f7b-b4a7-69e7534b1634", "org_unit_id": "123e4567-e89b-12d3-a456-426655440000", "org_role_id": "223e4567-e89b-12d3-a456-426655440000"}
Responses
Section titled “ Responses ”Org person created successfully
object
Example
{ "org_person_id": "122b7448dce72057574d59f93d456e54", "person_id": "db7d0826-e572-4f7b-b4a7-69e7534b1634", "org_unit_id": "123e4567-e89b-12d3-a456-426655440000", "org_role_id": "223e4567-e89b-12d3-a456-426655440000"}
update
Section titled “update” PUT /v2/org-person/update/{id}
Update an existing org person by its unique ID.
Path Parameters
Section titled “Path Parameters ”ID of the org person to update
Request Body required
Section titled “Request Body required ”Org person object with updated data
object
Example
{ "org_role_id": "new-role-id"}
Responses
Section titled “ Responses ”Org person updated successfully
object
Example
{ "org_person_id": "122b7448dce72057574d59f93d456e54", "org_role_id": "new-role-id"}
Org person not found
delete
Section titled “delete” DELETE /v2/org-person/delete/{id}
Delete an org person by its unique ID.
If force=true, all related entities will also be deleted.
Path Parameters
Section titled “Path Parameters ”ID of the org person to delete
Query Parameters
Section titled “Query Parameters ”Force the deletion of the entity and all related entities
Responses
Section titled “ Responses ”Org person deleted successfully
If force=false, the operation is interrupted and the list of connected entities that will be deleted in case of confirmation (force=true) is returned