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