Attribute
Questi contenuti non sono ancora disponibili nella tua lingua.
Manage custom attributes, which are free custom fields used to describe details linked to an entity.
You can create, update, delete, and search for attributes with advanced filtering and pagination.
- Version
- 2.0.0
- OpenAPI version
- 3.0.0
Operations
Sezione intitolata “Operations” POST /v2/attribute/index
Returns a paginated and filterable list of attributes for a given entity.
Use POST to allow complex filters via JSON payload.
Request Body
Sezione intitolata “Request Body ”Parameters for searching attributes
object
Example
{ "entity_id": "569bc3c7-ead1-41e8-85ab-fdccf7085c5f", "name": "Room Size"}
Responses
Sezione intitolata “ Responses ”List of attributes
object
The ID of the attribute
The name of the attribute
The description of the attribute
The ID of the entity the attribute is associated with
The type of the entity the attribute is associated with
The ID of the unit of measure associated with the attribute
The value of the attribute
{ "attribute_id": "123e4567-e89b-12d3-a456-426655440000", "name": "Room Size", "description": "The room size", "entity_id": "569bc3c7-ead1-41e8-85ab-fdccf7085c5f", "entity_type": "WORK_ENVIRONMENT", "unit_of_measure_id": "M3", "value": 50}
Example
{ "attribute_id": "123e4567-e89b-12d3-a456-426655440000", "name": "Room Size", "description": "The room size", "entity_id": "569bc3c7-ead1-41e8-85ab-fdccf7085c5f", "entity_type": "WORK_ENVIRONMENT", "unit_of_measure_id": "M3", "value": "50"}
Headers
Sezione intitolata “Headers ”Current page
Total number of pages
Number of items per page
Total number of items
GET /v2/attribute/view/{id}
Retrieve a single attribute by its unique ID.
Path Parameters
Sezione intitolata “Path Parameters ”The ID of the attribute to retrieve
Responses
Sezione intitolata “ Responses ”Attribute found
object
The ID of the attribute
The name of the attribute
The description of the attribute
The ID of the entity the attribute is associated with
The type of the entity the attribute is associated with
The ID of the unit of measure associated with the attribute
The value of the attribute
Example
{ "attribute_id": "123e4567-e89b-12d3-a456-426655440000", "name": "Room Size", "description": "The room size", "entity_id": "569bc3c7-ead1-41e8-85ab-fdccf7085c5f", "entity_type": "WORK_ENVIRONMENT", "unit_of_measure_id": "M3", "value": "50"}
Attribute not found
POST /v2/attribute/create
Create a new attribute for an entity.
Request Body required
Sezione intitolata “Request Body required ”The attribute to create
object
The ID of the attribute
The name of the attribute
The description of the attribute
The ID of the entity the attribute is associated with
The type of the entity the attribute is associated with
The ID of the unit of measure associated with the attribute
The value of the attribute
Example
{ "name": "Room Size", "description": "The room size", "entity_id": "569bc3c7-ead1-41e8-85ab-fdccf7085c5f", "entity_type": "WORK_ENVIRONMENT", "unit_of_measure_id": "M3", "value": "50"}
Responses
Sezione intitolata “ Responses ”Attribute created successfully
object
The ID of the attribute
The name of the attribute
The description of the attribute
The ID of the entity the attribute is associated with
The type of the entity the attribute is associated with
The ID of the unit of measure associated with the attribute
The value of the attribute
Example
{ "attribute_id": "123e4567-e89b-12d3-a456-426655440000", "name": "Room Size", "description": "The room size", "entity_id": "569bc3c7-ead1-41e8-85ab-fdccf7085c5f", "entity_type": "WORK_ENVIRONMENT", "unit_of_measure_id": "M3", "value": "50"}
PUT /v2/attribute/update/{id}
Update an existing attribute by its unique ID.
Path Parameters
Sezione intitolata “Path Parameters ”The ID of the attribute to update
Request Body required
Sezione intitolata “Request Body required ”The updated attribute
object
The ID of the attribute
The name of the attribute
The description of the attribute
The ID of the entity the attribute is associated with
The type of the entity the attribute is associated with
The ID of the unit of measure associated with the attribute
The value of the attribute
Example
{ "name": "Updated Room Size", "value": "60"}
Responses
Sezione intitolata “ Responses ”Attribute updated successfully
object
The ID of the attribute
The name of the attribute
The description of the attribute
The ID of the entity the attribute is associated with
The type of the entity the attribute is associated with
The ID of the unit of measure associated with the attribute
The value of the attribute
Example
{ "attribute_id": "123e4567-e89b-12d3-a456-426655440000", "name": "Updated Room Size", "value": "60"}
Attribute not found
DELETE /v2/attribute/delete/{id}
Delete an attribute by its unique ID.
If force=true, all related entities will also be deleted.
Path Parameters
Sezione intitolata “Path Parameters ”The ID of the attribute to delete
Query Parameters
Sezione intitolata “Query Parameters ”Force the deletion of the entity and all related entities
Responses
Sezione intitolata “ Responses ”Attribute 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