OrgPerson
An OrgPerson represents the assignment of a person to an organization unit, optionally with a role in the organization chart.
Use this API to:
- Assign a person to an organization unit with an optional role
- Find all people in an organization unit (filter by
org_unit_id) - Find all organization units a person belongs to (filter by
person_id) - Find all people with a specific organizational role (filter by
org_role_id)
Supports historicization.
- Version
- 2.0.0
- OpenAPI version
- 3.0.0
Authentication
Section titled “ Authentication ”OAuth2
Section titled “OAuth2 ”Security scheme type: oauth2
Flow type: password
Token URL: https://auth.4hse.com/realms/4hse/protocol/openid-connect/token
AccessToken
Section titled “AccessToken ”Security scheme type: apiKey
Query parameter name: access-token
Operations
Section titled “Operations” POST /v2/org-person/index
Returns a paginated list of person-unit assignments.
Most useful filters:
org_unit_id: all people in a specific organization unitperson_id: all units a person belongs toorg_role_id: all people with a specific organizational role
Authorizations
Section titled “Authorizations ”Request Body
Section titled “Request Body ”Parameters for searching
object
object
Code of the organization unit.
Name of the organization unit.
Code of the organizational role.
Name of the organizational role.
Name of the project.
Whether this assignment is currently active.
Whether the parent entities are currently active.
If true, includes historicized entries.
Example
{ "filter": { "org_unit_id": "6d7e8f90-1234-5678-abcd-ef6789012345" }, "per-page": 20, "page": 1, "sort": "person_last_name"}Responses
Section titled “ Responses ”List of person-unit assignments
object
Code of the organization unit.
Name of the organization unit.
Code of the organizational role.
Name of the organizational role.
Name of the project.
Whether this assignment is currently active.
Whether the parent entities are currently active.
Headers
Section titled “Headers ”Current page
Total number of pages
Number of items per page
Total number of items
create
Section titled “create” POST /v2/org-person/create
Assigns a person to an organization unit.
Requires person_id and org_unit_id.
The org_person_id is auto-generated if not provided.
Optionally pass org_role_id to assign a specific organizational role.
If omitted, the person is assigned to the unit without a specific role.
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ”Assignment to create
object
Unique identifier. Auto-generated if not provided.
The organization unit. Pass the org_unit_id from the OrgUnit API.
The person. Pass the person_id from the Person API.
The organizational role (optional). Pass the org_role_id from the OrgRole API. If omitted, the person is assigned without a specific role.
Responses
Section titled “ Responses ”Person assigned successfully
object
Unique identifier. Auto-generated if not provided.
The organization unit. Pass the org_unit_id from the OrgUnit API.
The person. Pass the person_id from the Person API.
The organizational role (optional). Pass the org_role_id from the OrgRole API. If omitted, the person is assigned without a specific role.
GET /v2/org-person/view/{id}
Retrieves a single assignment by its ID.
Authorizations
Section titled “Authorizations ”Path Parameters
Section titled “Path Parameters ”The org_person_id to retrieve.
Responses
Section titled “ Responses ”Assignment found
object
Code of the organization unit.
Name of the organization unit.
Code of the organizational role.
Name of the organizational role.
Name of the project.
Whether this assignment is currently active.
Whether the parent entities are currently active.
Not found
update
Section titled “update” PUT /v2/org-person/update/{id}
Updates an existing assignment.
Authorizations
Section titled “Authorizations ”Path Parameters
Section titled “Path Parameters ”The org_person_id to update.
Request Body required
Section titled “Request Body required ”Fields to update
object
Unique identifier. Auto-generated if not provided.
The organization unit. Pass the org_unit_id from the OrgUnit API.
The person. Pass the person_id from the Person API.
The organizational role (optional). Pass the org_role_id from the OrgRole API. If omitted, the person is assigned without a specific role.
Responses
Section titled “ Responses ”Updated successfully
object
Unique identifier. Auto-generated if not provided.
The organization unit. Pass the org_unit_id from the OrgUnit API.
The person. Pass the person_id from the Person API.
The organizational role (optional). Pass the org_role_id from the OrgRole API. If omitted, the person is assigned without a specific role.
Not found
delete
Section titled “delete” DELETE /v2/org-person/delete/{id}
Deletes a person-unit assignment.
Authorizations
Section titled “Authorizations ”Path Parameters
Section titled “Path Parameters ”The org_person_id to delete.
Query Parameters
Section titled “Query Parameters ”If true, deletes the assignment.
Responses
Section titled “ Responses ”Deleted successfully
Preview of affected entities (returned when force=false)