WorkGroupEntity
Manage work group entities, which represent the association between work groups and entities (such as equipment, work environments, or substances).
You can create, update, delete, and search for work group entities with advanced filtering and pagination.
- Version
- 2.0.0
- OpenAPI version
- 3.0.0
Operations
Section titled “Operations” POST /v2/work-group-entity/index
Returns a paginated and filterable list of work group entities.
Use POST to allow complex filters via JSON payload.
Request Body
Section titled “Request Body ”Parameters for searching work group entities
object
object
Example
{ "filter": { "work_group_name": "My group", "entity_type": "EQUIPMENT" }, "per-page": 50, "page": 2, "sort": "-work_group_name"}
Responses
Section titled “ Responses ”List of work group entities
object
Example
{ "work_group_entity_id": "wge-1", "work_group_id": "wg-1", "entity_id": "eq-1", "entity_type": "EQUIPMENT", "description": "Main excavator", "work_group_code": "GRP-001", "work_group_name": "My group", "entity_name": "Excavator", "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-entity/view/{id}
Retrieve a work group entity by its unique ID.
Path Parameters
Section titled “Path Parameters ”ID of the work group entity to retrieve
Responses
Section titled “ Responses ”Work group entity found
object
Example
{ "work_group_entity_id": "wge-1", "work_group_id": "wg-1", "entity_id": "eq-1", "entity_type": "EQUIPMENT", "description": "Main excavator", "work_group_code": "GRP-001", "work_group_name": "My group", "entity_name": "Excavator", "office_name": "Main Office"}
Work group entity not found
create
Section titled “create” POST /v2/work-group-entity/create
Create a new work group entity by providing the required details.
Request Body required
Section titled “Request Body required ”Work group entity object to be created
object
Example
{ "work_group_id": "wg-2", "entity_id": "eq-2", "entity_type": "EQUIPMENT", "description": "Support excavator"}
Responses
Section titled “ Responses ”Work group entity created successfully
object
Example
{ "work_group_entity_id": "wge-2", "work_group_id": "wg-2", "entity_id": "eq-2", "entity_type": "EQUIPMENT", "description": "Support excavator"}
update
Section titled “update” PUT /v2/work-group-entity/update/{id}
Update an existing work group entity by its unique ID.
Path Parameters
Section titled “Path Parameters ”ID of the work group entity to update
Request Body required
Section titled “Request Body required ”Work group entity object with updated data
object
Example
{ "description": "Updated description"}
Responses
Section titled “ Responses ”Work group entity updated successfully
object
Example
{ "work_group_entity_id": "wge-1", "description": "Updated description"}
Work group entity not found
delete
Section titled “delete” DELETE /v2/work-group-entity/delete/{id}
Delete a work group entity 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 entity to delete
Query Parameters
Section titled “Query Parameters ”Force the deletion of the entity and all related entities
Responses
Section titled “ Responses ”Work group entity 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