PersonOffice
Questi contenuti non sono ancora disponibili nella tua lingua.
Manage person-office associations, which represent the assignment of people to offices and projects.
You can create, update, delete, and search for person offices with advanced filtering and pagination.
- Version
- 2.0.0
- OpenAPI version
- 3.0.0
Operations
Sezione intitolata “Operations” POST /v2/person-office/index
Returns a paginated and filterable list of person offices.
Use POST to allow complex filters via JSON payload.
Request Body
Sezione intitolata “Request Body ”Parameters for searching person offices
object
object
Example
{ "filter": { "person_first_name": "Mario", "person_last_name": "Rossi" }, "per-page": 50, "page": 2, "sort": "-person_tax_code"}
Responses
Sezione intitolata “ Responses ”List of person offices
object
Example
{ "person_office_id": "po-1", "office_id": "off-1", "person_id": "person-1", "project_id": "proj-1", "person_code": "MR001", "person_first_name": "Mario", "person_last_name": "Rossi", "person_birth_date": "1980-01-01", "office_name": "Main Office", "project_name": "Project X"}
Headers
Sezione intitolata “Headers ”Current page
Total number of pages
Number of items per page
Total number of items
GET /v2/person-office/view/{id}
Retrieve a person office by its unique ID.
Path Parameters
Sezione intitolata “Path Parameters ”ID of the person office to retrieve
Responses
Sezione intitolata “ Responses ”Person office found
object
Example
{ "person_office_id": "po-1", "office_id": "off-1", "person_id": "person-1", "project_id": "proj-1", "person_code": "MR001", "person_first_name": "Mario", "person_last_name": "Rossi", "person_birth_date": "1980-01-01", "office_name": "Main Office", "project_name": "Project X"}
Person office not found
POST /v2/person-office/create
Create a new person office by providing the required details.
Request Body required
Sezione intitolata “Request Body required ”Person office object to be created
object
Example
{ "office_id": "off-2", "person_id": "person-2", "project_id": "proj-2"}
Responses
Sezione intitolata “ Responses ”Person office created successfully
object
Example
{ "person_office_id": "po-2", "office_id": "off-2", "person_id": "person-2", "project_id": "proj-2"}
PUT /v2/person-office/update/{id}
Update an existing person office by its unique ID.
Path Parameters
Sezione intitolata “Path Parameters ”ID of the person office to update
Request Body required
Sezione intitolata “Request Body required ”Person office object with updated data
object
Example
{ "office_id": "off-1", "project_id": "proj-3"}
Responses
Sezione intitolata “ Responses ”Person office updated successfully
object
Example
{ "person_office_id": "po-1", "office_id": "off-1", "project_id": "proj-3"}
Person office not found
DELETE /v2/person-office/delete/{id}
Delete a person office by its unique ID.
If force=true, all related entities will also be deleted.
Path Parameters
Sezione intitolata “Path Parameters ”ID of the person office to delete
Query Parameters
Sezione intitolata “Query Parameters ”Force the deletion of the entity and all related entities
Responses
Sezione intitolata “ Responses ”Person office 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