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