WorkGroup
Questi contenuti non sono ancora disponibili nella tua lingua.
Manage work groups, which represent teams or units within an office or project.
You can create, update, delete, and search for work groups with advanced filtering and pagination.
- Version
- 2.0.0
- OpenAPI version
- 3.0.0
Operations
Sezione intitolata “Operations” POST /v2/work-group/index
Returns a paginated and filterable list of work groups.
Use POST to allow complex filters via JSON payload.
Request Body
Sezione intitolata “Request Body ”Parameters for searching work groups
object
object
Example
{ "filter": { "name": "My group", "code": "GRP-001" }, "per-page": 50, "page": 2, "sort": "-name"}
Responses
Sezione intitolata “ Responses ”List of work groups
object
Example
{ "work_group_id": "wg-1", "code": "GRP-001", "name": "My group", "description": "Main work group", "office_id": "off-1", "work_group_type": "team", "project_id": "proj-1", "project_name": "Project X", "office_name": "Main Office"}
Headers
Sezione intitolata “Headers ”Current page
Total number of pages
Number of items per page
Total number of items
GET /v2/work-group/view/{id}
Retrieve a work group by its unique ID.
Path Parameters
Sezione intitolata “Path Parameters ”ID of the work group to retrieve
Responses
Sezione intitolata “ Responses ”Work group found
object
Example
{ "work_group_id": "wg-1", "code": "GRP-001", "name": "My group", "description": "Main work group", "office_id": "off-1", "work_group_type": "team", "project_id": "proj-1", "project_name": "Project X", "office_name": "Main Office"}
Work group not found
POST /v2/work-group/create
Create a new work group by providing the required details.
Request Body required
Sezione intitolata “Request Body required ”Work group object to be created
object
Example
{ "code": "GRP-002", "name": "Support group", "description": "Support team", "office_id": "off-2", "work_group_type": "support"}
Responses
Sezione intitolata “ Responses ”Work group created successfully
object
Example
{ "work_group_id": "wg-2", "code": "GRP-002", "name": "Support group", "description": "Support team", "office_id": "off-2", "work_group_type": "support"}
PUT /v2/work-group/update/{id}
Update an existing work group by its unique ID.
Path Parameters
Sezione intitolata “Path Parameters ”ID of the work group to update
Request Body required
Sezione intitolata “Request Body required ”Work group object with updated data
object
Example
{ "name": "Updated group", "description": "Updated description"}
Responses
Sezione intitolata “ Responses ”Work group updated successfully
object
Example
{ "work_group_id": "wg-1", "name": "Updated group", "description": "Updated description"}
Work group not found
DELETE /v2/work-group/delete/{id}
Delete a work group by its unique ID.
If force=true, all related entities will also be deleted.
Path Parameters
Sezione intitolata “Path Parameters ”ID of the work group to delete
Query Parameters
Sezione intitolata “Query Parameters ”Force the deletion of the entity and all related entities
Responses
Sezione intitolata “ Responses ”Work group 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