WorkGroup
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
Section titled “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
Section titled “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
Section titled “ 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
Section titled “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
Section titled “Path Parameters ”ID of the work group to retrieve
Responses
Section titled “ 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
create
Section titled “create” POST /v2/work-group/create
Create a new work group by providing the required details.
Request Body required
Section titled “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
Section titled “ 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"}
update
Section titled “update” PUT /v2/work-group/update/{id}
Update an existing work group by its unique ID.
Path Parameters
Section titled “Path Parameters ”ID of the work group to update
Request Body required
Section titled “Request Body required ”Work group object with updated data
object
Example
{ "name": "Updated group", "description": "Updated description"}
Responses
Section titled “ Responses ”Work group updated successfully
object
Example
{ "work_group_id": "wg-1", "name": "Updated group", "description": "Updated description"}
Work group not found
delete
Section titled “delete” 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
Section titled “Path Parameters ”ID of the work group to delete
Query Parameters
Section titled “Query Parameters ”Force the deletion of the entity and all related entities
Responses
Section titled “ 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