WorkEnvironment
Questi contenuti non sono ancora disponibili nella tua lingua.
Manage work environments, which represent physical or logical areas within offices or projects.
You can create, update, delete, and search for work environments with advanced filtering and pagination.
- Version
- 2.0.0
- OpenAPI version
- 3.0.0
Operations
Sezione intitolata “Operations” POST /v2/work-environment/index
Returns a paginated and filterable list of work environments.
Use POST to allow complex filters via JSON payload.
Request Body
Sezione intitolata “Request Body ”Parameters for searching work environments
object
object
The unique identifier for the office work environment.
The unique identifier for the office.
The unique identifier for the work environment, if applicable.
The code associated with the office work environment, if available.
The name of the office work environment.
A description of the office work environment, if available.
The unique identifier for the project associated with the office work environment.
The name of the project, read-only.
The type of the project, read-only.
The name of the office, read-only.
The category of the office work environment, if available, read-only.
Indicates whether the office work environment is active and owned, read-only.
Indicates whether the parent office work environment is active, read-only.
The field of the model to sort the list for, use a minus to revert the sort. Es -name is to require the sort in reverse order
The field establishes whether to also include historized elements that are no longer active in the results. If you leave this parameter empty the response returns only actual entries.
Example
{ "filter": { "name": "Work environment 1", "office_id": "off-1" }, "per-page": 10, "page": 1, "sort": "name"}
Responses
Sezione intitolata “ Responses ”List of work environments
object
The unique identifier for the office work environment.
The unique identifier for the office.
The unique identifier for the work environment, if applicable.
The code associated with the office work environment, if available.
The name of the office work environment.
A description of the office work environment, if available.
The unique identifier for the project associated with the office work environment.
The name of the project, read-only.
The type of the project, read-only.
The name of the office, read-only.
The category of the office work environment, if available, read-only.
Indicates whether the office work environment is active and owned, read-only.
Indicates whether the parent office work environment is active, read-only.
Example
{ "office_work_environment_id": "we-1", "office_id": "off-1", "work_environment_id": "env-1", "code": "WE001", "name": "Work environment 1", "description": "Main production area", "project_id": "proj-1", "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
POST /v2/work-environment/create
Create a new work environment by providing the required details.
Request Body required
Sezione intitolata “Request Body required ”Work environment object to be created
object
The unique identifier for the office work environment.
The unique identifier for the office.
The unique identifier for the work environment, if applicable.
The code associated with the office work environment, if available.
The name of the office work environment.
A description of the office work environment, if available.
The unique identifier for the project associated with the office work environment.
Example
{ "office_id": "off-2", "code": "WE002", "name": "Work environment 2", "description": "Secondary area", "project_id": "proj-2"}
Responses
Sezione intitolata “ Responses ”Work environment created successfully
object
The unique identifier for the office work environment.
The unique identifier for the office.
The unique identifier for the work environment, if applicable.
The code associated with the office work environment, if available.
The name of the office work environment.
A description of the office work environment, if available.
The unique identifier for the project associated with the office work environment.
Example
{ "office_work_environment_id": "we-2", "office_id": "off-2", "work_environment_id": "env-2", "code": "WE002", "name": "Work environment 2", "description": "Secondary area", "project_id": "proj-2"}
GET /v2/work-environment/view/{id}
Retrieve a work environment by its unique ID.
Path Parameters
Sezione intitolata “Path Parameters ”ID of the work environment to retrieve
Responses
Sezione intitolata “ Responses ”Work environment found
object
The unique identifier for the office work environment.
The unique identifier for the office.
The unique identifier for the work environment, if applicable.
The code associated with the office work environment, if available.
The name of the office work environment.
A description of the office work environment, if available.
The unique identifier for the project associated with the office work environment.
The name of the project, read-only.
The type of the project, read-only.
The name of the office, read-only.
The category of the office work environment, if available, read-only.
Indicates whether the office work environment is active and owned, read-only.
Indicates whether the parent office work environment is active, read-only.
Example
{ "office_work_environment_id": "we-1", "office_id": "off-1", "work_environment_id": "env-1", "code": "WE001", "name": "Work environment 1", "description": "Main production area", "project_id": "proj-1", "office_name": "Main Office", "project_name": "Project X"}
Work environment not found
DELETE /v2/work-environment/delete/{id}
Delete a work environment by its unique ID.
If force=true, all related entities will also be deleted.
Path Parameters
Sezione intitolata “Path Parameters ”ID of the work environment to delete
Query Parameters
Sezione intitolata “Query Parameters ”Force the deletion of the entity and all related entities
Responses
Sezione intitolata “ Responses ”Work environment 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
PUT /v2/work-environment/update/{id}
Update an existing work environment by its unique ID.
Path Parameters
Sezione intitolata “Path Parameters ”ID of the work environment to update
Request Body required
Sezione intitolata “Request Body required ”Work environment object with updated data
object
The unique identifier for the office work environment.
The unique identifier for the office.
The unique identifier for the work environment, if applicable.
The code associated with the office work environment, if available.
The name of the office work environment.
A description of the office work environment, if available.
The unique identifier for the project associated with the office work environment.
Example
{ "name": "Updated Work Environment", "description": "Updated description"}
Responses
Sezione intitolata “ Responses ”Work environment updated successfully
object
The unique identifier for the office work environment.
The unique identifier for the office.
The unique identifier for the work environment, if applicable.
The code associated with the office work environment, if available.
The name of the office work environment.
A description of the office work environment, if available.
The unique identifier for the project associated with the office work environment.
Example
{ "office_work_environment_id": "we-1", "name": "Updated Work Environment", "description": "Updated description"}
Work environment not found