Skip to content

Attribute

An Attribute is a custom field that records a measurable or descriptive detail of a resource: the noise level of a work environment, the load capacity of a forklift, the size of a PPE item.

Each attribute carries a name, a value and a unit of measure (unit_of_measure_id), and is attached to a single resource through entity_id and entity_type — a person, a piece of equipment, a work environment, or a substance.

Use this API to:

  • Record details of a resource that its standard fields do not cover
  • Find all attributes of a resource (filter by entity_id)
  • Update a measured value after an inspection
Version
2.0.0
OpenAPI version
3.0.0
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. The entity_id parameter is required and can be provided as a query parameter or in the request body.

entity_id
required
string format: uuid

The ID of the entity to retrieve attributes for. Required.

Parameters for searching attributes

object
filter
object
attribute_id
string format: uuid
code
string
<= 45 characters
name
required
string
<= 255 characters
description
string
<= 4000 characters
entity_id
required

The ID of the entity this attribute is associated with.

string format: uuid
entity_type
required

The type of the entity this attribute is associated with.

string
Allowed values: EQUIPMENT WORK_ENVIRONMENT SUBSTANCE OFFICE PERSON MATERIAL_ITEM MATERIAL CUSTOMER
unit_of_measure_id
required
string
<= 50 characters
value
required
string
<= 250 characters
measure
string
<= 255 characters
measure_data
string
<= 4000 characters
tenant_id
string format: uuid
{
"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"
}
per-page
integer
default: 100 >= 1
page
integer
default: 1 >= 1
sort
string
Allowed values: name code entity_type value
Example
{
"filter": {
"name": "Room Size"
},
"per-page": 50,
"page": 1
}

List of attributes

Array<object>
object
attribute_id
string format: uuid
code
string
<= 45 characters
name
required
string
<= 255 characters
description
string
<= 4000 characters
entity_id
required

The ID of the entity this attribute is associated with.

string format: uuid
entity_type
required

The type of the entity this attribute is associated with.

string
Allowed values: EQUIPMENT WORK_ENVIRONMENT SUBSTANCE OFFICE PERSON MATERIAL_ITEM MATERIAL CUSTOMER
unit_of_measure_id
required
string
<= 50 characters
value
required
string
<= 250 characters
measure
string
<= 255 characters
measure_data
string
<= 4000 characters
tenant_id
string format: uuid
{
"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"
}
X-Pagination-Current-Page
integer

Current page

X-Pagination-Page-Count
integer

Total number of pages

X-Pagination-Per-Page
integer

Number of items per page

X-Pagination-Total-Count
integer

Total number of items

GET
/v2/attribute/view/{id}

Retrieve a single attribute by its unique ID.

id
required
string format: uuid

The ID of the attribute to retrieve

Attribute found

object
attribute_id
string format: uuid
code
string
<= 45 characters
name
required
string
<= 255 characters
description
string
<= 4000 characters
entity_id
required

The ID of the entity this attribute is associated with.

string format: uuid
entity_type
required

The type of the entity this attribute is associated with.

string
Allowed values: EQUIPMENT WORK_ENVIRONMENT SUBSTANCE OFFICE PERSON MATERIAL_ITEM MATERIAL CUSTOMER
unit_of_measure_id
required
string
<= 50 characters
value
required
string
<= 250 characters
measure
string
<= 255 characters
measure_data
string
<= 4000 characters
tenant_id
string format: uuid
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.

The attribute to create

object
attribute_id
string format: uuid
code
string
<= 45 characters
name
required
string
<= 255 characters
description
string
<= 4000 characters
entity_id
required

The ID of the entity this attribute is associated with.

string format: uuid
entity_type
required

The type of the entity this attribute is associated with.

string
Allowed values: EQUIPMENT WORK_ENVIRONMENT SUBSTANCE OFFICE PERSON MATERIAL_ITEM MATERIAL CUSTOMER
unit_of_measure_id
required
string
<= 50 characters
value
required
string
<= 250 characters
measure
string
<= 255 characters
measure_data
string
<= 4000 characters
tenant_id
string format: uuid
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"
}

Attribute created successfully

object
attribute_id
string format: uuid
code
string
<= 45 characters
name
required
string
<= 255 characters
description
string
<= 4000 characters
entity_id
required

The ID of the entity this attribute is associated with.

string format: uuid
entity_type
required

The type of the entity this attribute is associated with.

string
Allowed values: EQUIPMENT WORK_ENVIRONMENT SUBSTANCE OFFICE PERSON MATERIAL_ITEM MATERIAL CUSTOMER
unit_of_measure_id
required
string
<= 50 characters
value
required
string
<= 250 characters
measure
string
<= 255 characters
measure_data
string
<= 4000 characters
tenant_id
string format: uuid
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.

id
required
string format: uuid

The ID of the attribute to update

The updated attribute

object
attribute_id
string format: uuid
code
string
<= 45 characters
name
required
string
<= 255 characters
description
string
<= 4000 characters
entity_id
required

The ID of the entity this attribute is associated with.

string format: uuid
entity_type
required

The type of the entity this attribute is associated with.

string
Allowed values: EQUIPMENT WORK_ENVIRONMENT SUBSTANCE OFFICE PERSON MATERIAL_ITEM MATERIAL CUSTOMER
unit_of_measure_id
required
string
<= 50 characters
value
required
string
<= 250 characters
measure
string
<= 255 characters
measure_data
string
<= 4000 characters
tenant_id
string format: uuid
Example
{
"name": "Updated Room Size",
"value": "60"
}

Attribute updated successfully

object
attribute_id
string format: uuid
code
string
<= 45 characters
name
required
string
<= 255 characters
description
string
<= 4000 characters
entity_id
required

The ID of the entity this attribute is associated with.

string format: uuid
entity_type
required

The type of the entity this attribute is associated with.

string
Allowed values: EQUIPMENT WORK_ENVIRONMENT SUBSTANCE OFFICE PERSON MATERIAL_ITEM MATERIAL CUSTOMER
unit_of_measure_id
required
string
<= 50 characters
value
required
string
<= 250 characters
measure
string
<= 255 characters
measure_data
string
<= 4000 characters
tenant_id
string format: uuid
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.

id
required
string format: uuid

The ID of the attribute to delete

force
boolean

Force the deletion of the entity and all related entities

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

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.