WorkGroupPerson
Questi contenuti non sono ancora disponibili nella tua lingua.
Manage work group persons, which represent the association between people and work groups.
You can create, update, delete, and search for work group persons with advanced filtering and pagination.
- Version
- 2.0.0
- OpenAPI version
- 3.0.0
Operations
Sezione intitolata “Operations” POST /v2/work-group-person/index
Returns a paginated and filterable list of work group persons.
Use POST to allow complex filters via JSON payload.
Request Body
Sezione intitolata “Request Body ”Parameters for searching work group persons
object
object
Example
{ "filter": { "work_group_name": "My group" }, "per-page": 50, "page": 2, "sort": "-work_group_name"}
Responses
Sezione intitolata “ Responses ”List of work group persons
object
Example
{ "work_group_person_id": "wgp-1", "work_group_id": "wg-1", "person_office_id": "po-1", "work_group_code": "GRP-001", "work_group_name": "My group", "person_first_name": "Mario", "person_last_name": "Rossi", "office_id": "off-1", "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-person/view/{id}
Retrieve a work group person by its unique ID.
Path Parameters
Sezione intitolata “Path Parameters ”ID of the work group person to retrieve
Responses
Sezione intitolata “ Responses ”Work group person found
object
Example
{ "work_group_person_id": "wgp-1", "work_group_id": "wg-1", "person_office_id": "po-1", "work_group_code": "GRP-001", "work_group_name": "My group", "person_first_name": "Mario", "person_last_name": "Rossi", "office_id": "off-1", "office_name": "Main Office"}
Work group person not found
POST /v2/work-group-person/create
Create a new work group person by providing the required details.
Request Body required
Sezione intitolata “Request Body required ”Work group person object to be created
object
Example
{ "work_group_id": "wg-2", "person_office_id": "po-2"}
Responses
Sezione intitolata “ Responses ”Work group person created successfully
object
Example
{ "work_group_person_id": "wgp-2", "work_group_id": "wg-2", "person_office_id": "po-2"}
PUT /v2/work-group-person/update/{id}
Update an existing work group person by its unique ID.
Path Parameters
Sezione intitolata “Path Parameters ”ID of the work group person to update
Request Body required
Sezione intitolata “Request Body required ”Work group person object with updated data
object
Example
{ "time_spent_measure": "8"}
Responses
Sezione intitolata “ Responses ”Work group person updated successfully
object
Example
{ "work_group_person_id": "wgp-1", "time_spent_measure": "8"}
Work group person not found
DELETE /v2/work-group-person/delete/{id}
Delete a work group person 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 person to delete
Query Parameters
Sezione intitolata “Query Parameters ”Force the deletion of the entity and all related entities
Responses
Sezione intitolata “ Responses ”Work group person 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