Equipment
An Equipment represents a piece of equipment registered in an office (work location). Examples: forklift, scaffolding, crane, drill press.
Belongs to an office and can be subject to maintenance or check actions on the compliance schedule
(ActionSubscription with subscriber_type: EQUIPMENT).
Maintenance certificates reference the equipment via the resource_id field.
Use this API to:
- Register equipment present in an office
- Get the
office_equipment_idneeded to create compliance schedule entries or certificates - Browse the equipment inventory for an office (filter by
office_id)
Supports historicization: when equipment or its parent office is historicized, the equipment and its child entities are excluded from normal queries.
- Version
- 2.0.0
- OpenAPI version
- 3.0.0
Authentication
Section titled “ Authentication ”OAuth2
Section titled “OAuth2 ”Security scheme type: oauth2
Flow type: password
Token URL: https://auth.4hse.com/realms/4hse/protocol/openid-connect/token
AccessToken
Section titled “AccessToken ”Security scheme type: apiKey
Query parameter name: access-token
Operations
Section titled “Operations” POST /v2/equipment/index
Returns a paginated list of equipment.
Most useful filters:
office_id: all equipment in a specific officename: search by nameproject_id: all equipment in a company
Authorizations
Section titled “Authorizations ”Request Body
Section titled “Request Body ”Parameters for searching equipment
object
object
Unique identifier. Used as subscriber_id (EQUIPMENT) or resource_id.
Name of the office.
Name of the project (company).
Equipment category (from the catalog if linked).
Whether this equipment is currently active.
Whether the parent office is currently active.
Field to sort by. Prefix with minus for descending order.
If true, includes historicized (no longer active) entries. By default only current entries are returned.
Example
{ "filter": { "office_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "name": "Forklift" }, "per-page": 20, "page": 1, "sort": "name"}Responses
Section titled “ Responses ”List of equipment
object
Unique identifier. Used as subscriber_id (EQUIPMENT) or resource_id.
Name of the office.
Name of the project (company).
Equipment category (from the catalog if linked).
Whether this equipment is currently active.
Whether the parent office is currently active.
Example
[ { "office_equipment_id": "1a2b3c4d-5e6f-7890-abcd-ef1234567890", "office_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "code": "FL-001", "name": "Forklift A", "serial": "SN-2024-0001", "vendor": "Toyota", "model": "8FBN25", "project_id": "b5a7d602-3fc9-4e2a-9d1a-6e5b4c8f7a01", "office_name": "Rome North Site", "project_name": "Acme Construction Ltd", "project_type": "safety", "owned_active": true, "parent_active": true }]Headers
Section titled “Headers ”Current page
Total number of pages
Number of items per page
Total number of items
create
Section titled “create” POST /v2/equipment/create
Registers a new piece of equipment in an office.
Requires office_id, project_id, and name.
The office_equipment_id is auto-generated if not provided.
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ”Equipment to register
object
Unique identifier. Auto-generated if not provided. Used as subscriber_id (with subscriber_type: EQUIPMENT) in the compliance schedule and as resource_id in certificates.
The office this equipment belongs to. Pass the office_id from the Office API.
Optional reference to an equipment model from the catalog (template).
Identifier code.
Name of the equipment.
Optional description.
The project (company). Pass the project_id.
Serial number.
Manufacturer.
Model name.
Example
{ "office_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "project_id": "b5a7d602-3fc9-4e2a-9d1a-6e5b4c8f7a01", "code": "FL-001", "name": "Forklift A", "serial": "SN-2024-0001", "vendor": "Toyota", "model": "8FBN25"}Responses
Section titled “ Responses ”Equipment registered successfully
object
Unique identifier. Auto-generated if not provided. Used as subscriber_id (with subscriber_type: EQUIPMENT) in the compliance schedule and as resource_id in certificates.
The office this equipment belongs to. Pass the office_id from the Office API.
Optional reference to an equipment model from the catalog (template).
Identifier code.
Name of the equipment.
Optional description.
The project (company). Pass the project_id.
Serial number.
Manufacturer.
Model name.
GET /v2/equipment/view/{id}
Retrieves a single equipment entry by its ID.
Authorizations
Section titled “Authorizations ”Path Parameters
Section titled “Path Parameters ”The office_equipment_id to retrieve.
Responses
Section titled “ Responses ”Equipment found
object
Unique identifier. Used as subscriber_id (EQUIPMENT) or resource_id.
Name of the office.
Name of the project (company).
Equipment category (from the catalog if linked).
Whether this equipment is currently active.
Whether the parent office is currently active.
Equipment not found
update
Section titled “update” PUT /v2/equipment/update/{id}
Updates an existing equipment entry.
Authorizations
Section titled “Authorizations ”Path Parameters
Section titled “Path Parameters ”The office_equipment_id to update.
Request Body required
Section titled “Request Body required ”Fields to update
object
Unique identifier. Auto-generated if not provided. Used as subscriber_id (with subscriber_type: EQUIPMENT) in the compliance schedule and as resource_id in certificates.
The office this equipment belongs to. Pass the office_id from the Office API.
Optional reference to an equipment model from the catalog (template).
Identifier code.
Name of the equipment.
Optional description.
The project (company). Pass the project_id.
Serial number.
Manufacturer.
Model name.
Example
{ "name": "Forklift A - Revised", "serial": "SN-2024-0001-R"}Responses
Section titled “ Responses ”Equipment updated successfully
object
Unique identifier. Auto-generated if not provided. Used as subscriber_id (with subscriber_type: EQUIPMENT) in the compliance schedule and as resource_id in certificates.
The office this equipment belongs to. Pass the office_id from the Office API.
Optional reference to an equipment model from the catalog (template).
Identifier code.
Name of the equipment.
Optional description.
The project (company). Pass the project_id.
Serial number.
Manufacturer.
Model name.
Equipment not found
delete
Section titled “delete” DELETE /v2/equipment/delete/{id}
Deletes an equipment entry.
If force=false (default), the response lists child entities.
If force=true, the equipment and all related entities are deleted.
Authorizations
Section titled “Authorizations ”Path Parameters
Section titled “Path Parameters ”The office_equipment_id to delete.
Query Parameters
Section titled “Query Parameters ”If true, deletes the equipment and all child entities. If false, returns a preview of affected entities.
Responses
Section titled “ Responses ”Equipment deleted successfully
Preview of entities that would be deleted (returned when force=false)