OrgRole
Questi contenuti non sono ancora disponibili nella tua lingua.
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
Sezione intitolata “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
Sezione intitolata “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
Sezione intitolata “ 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
Sezione intitolata “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
Sezione intitolata “Path Parameters ”ID of the org role to retrieve
Responses
Sezione intitolata “ 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
POST /v2/org-role/create
Create a new org role by providing the required details.
Request Body required
Sezione intitolata “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
Sezione intitolata “ 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"}
PUT /v2/org-role/update/{id}
Update an existing org role by its unique ID.
Path Parameters
Sezione intitolata “Path Parameters ”ID of the org role to update
Request Body required
Sezione intitolata “Request Body required ”Org role object with updated data
object
Example
{ "name": "Updated HR Manager", "description": "Updated description"}
Responses
Sezione intitolata “ 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 /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
Sezione intitolata “Path Parameters ”ID of the org role to delete
Query Parameters
Sezione intitolata “Query Parameters ”Force the deletion of the entity and all related entities
Responses
Sezione intitolata “ 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