OrgRole
Manage organization roles, which represent roles within the company organization chart.
You can create, update, delete, and search for org roles with advanced filtering and pagination.
- Version
- 2.0.0
- OpenAPI version
- 3.0.0
Operations
Section titled “Operations” POST /v2/org-role/index
Returns a paginated and filterable list of org roles.
Use POST to allow complex filters via JSON payload.
Request Body
Section titled “Request Body ”Parameters for searching org roles
object
object
Example
{ "filter": { "name": "HR Manager", "code": "ORG-ROLE-001" }, "per-page": 20, "page": 1, "sort": "name"}
Responses
Section titled “ Responses ”List of org roles
object
{ "org_role_id": "223e4567-e89b-12d3-a456-426655440000", "code": "ORG-ROLE-001", "name": "HR Manager", "description": "HR department manager", "project_id": "452b7448dce72057574d59f93d456ed0"}
Example
{ "org_role_id": "223e4567-e89b-12d3-a456-426655440000", "code": "ORG-ROLE-001", "name": "HR Manager", "description": "HR department manager", "project_id": "452b7448dce72057574d59f93d456ed0"}
Headers
Section titled “Headers ”Current page
Total number of pages
Number of items per page
Total number of items
GET /v2/org-role/view/{id}
Retrieve an org role by its unique ID.
Path Parameters
Section titled “Path Parameters ”ID of the org role to retrieve
Responses
Section titled “ Responses ”Org role found
object
Example
{ "org_role_id": "223e4567-e89b-12d3-a456-426655440000", "code": "ORG-ROLE-001", "name": "HR Manager", "description": "HR department manager", "project_id": "452b7448dce72057574d59f93d456ed0"}
Org role not found
create
Section titled “create” POST /v2/org-role/create
Create a new org role by providing the required details.
Request Body required
Section titled “Request Body required ”Org role object to be created
object
Example
{ "code": "ORG-ROLE-002", "name": "IT Manager", "description": "IT department manager", "project_id": "452b7448dce72057574d59f93d456ed0"}
Responses
Section titled “ Responses ”Org role created successfully
object
Example
{ "org_role_id": "323e4567-e89b-12d3-a456-426655440000", "code": "ORG-ROLE-002", "name": "IT Manager", "description": "IT department manager", "project_id": "452b7448dce72057574d59f93d456ed0"}
update
Section titled “update” PUT /v2/org-role/update/{id}
Update an existing org role by its unique ID.
Path Parameters
Section titled “Path Parameters ”ID of the org role to update
Request Body required
Section titled “Request Body required ”Org role object with updated data
object
Example
{ "name": "Updated HR Manager", "description": "Updated description"}
Responses
Section titled “ Responses ”Org role updated successfully
object
Example
{ "org_role_id": "223e4567-e89b-12d3-a456-426655440000", "name": "Updated HR Manager", "description": "Updated description"}
Org role not found
delete
Section titled “delete” DELETE /v2/org-role/delete/{id}
Delete an org role by its unique ID.
If force=true, all related entities will also be deleted.
Path Parameters
Section titled “Path Parameters ”ID of the org role to delete
Query Parameters
Section titled “Query Parameters ”Force the deletion of the entity and all related entities
Responses
Section titled “ Responses ”Org role 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