Material
Questi contenuti non sono ancora disponibili nella tua lingua.
Represents material resources along with their specifications, categorized into different types:
PPE
: personal protective equipmentequipment
: work tools and instrumentswork_environment
: workplace environment elementssubstance
: chemical or physical substances
This classification helps manage and track various materials essential for occupational safety and compliance.
- Version
- 2.0.0
- OpenAPI version
- 3.0.0
Authentication
Sezione intitolata “ Authentication ”OAuth2
Sezione intitolata “OAuth2 ”Security scheme type: oauth2
Flow type: password
Token URL: https://auth.4hse.com/realms/4hse/protocol/openid-connect/token
AccessToken
Sezione intitolata “AccessToken ”Security scheme type: apiKey
Query parameter name: access-token
Operations
Sezione intitolata “Operations” POST /v2/material/index
Returns a paginated and filterable list of materials. Use POST to allow complex filters via JSON payload.
Authorizations
Sezione intitolata “Authorizations ”Request Body
Sezione intitolata “Request Body ”Parameters for searching materials
object
object
Primary key ID for the material
Type of the material
Subtenant ID
Tenant ID
Optional code for the material
Name of the material
Optional description of the material
Optional category of the material
Additional data in JSON format
Office name (read-only)
Project name (read-only)
Project type (read-only)
Indicates if the material is actively owned (read-only)
Indicates if the material’s parent is actively owned (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": "Material 1", "material_type": "EQUIPMENT" }, "per-page": 10, "page": 1, "sort": "name"}
Responses
Sezione intitolata “ Responses ”List of materials
object
Primary key ID for the material
Type of the material
Subtenant ID
Tenant ID
Optional code for the material
Name of the material
Optional description of the material
Optional category of the material
Additional data in JSON format
Office name (read-only)
Project name (read-only)
Project type (read-only)
Indicates if the material is actively owned (read-only)
Indicates if the material’s parent is actively owned (read-only)
Example
{ "material_id": "mat-1", "material_type": "EQUIPMENT", "name": "Material 1", "code": "MAT-001", "description": "Material for construction", "category": "Construction", "subtenant_id": "sub-1", "tenant_id": "ten-1"}
Headers
Sezione intitolata “Headers ”Current page
Total number of pages
Number of items per page
Total number of items
POST /v2/material/create
Create a new material by providing the required details.
Authorizations
Sezione intitolata “Authorizations ”Request Body required
Sezione intitolata “Request Body required ”Material object to be created
object
Primary key ID for the material
Type of the material
Subtenant ID
Tenant ID
Optional code for the material
Name of the material
Optional description of the material
Optional category of the material
Additional data in JSON format
Example
{ "material_type": "EQUIPMENT", "name": "Material 2", "code": "MAT-002", "description": "Material for maintenance", "category": "Maintenance", "subtenant_id": "sub-2", "tenant_id": "ten-2"}
Responses
Sezione intitolata “ Responses ”Material created successfully
object
Primary key ID for the material
Type of the material
Subtenant ID
Tenant ID
Optional code for the material
Name of the material
Optional description of the material
Optional category of the material
Additional data in JSON format
Example
{ "material_id": "mat-2", "material_type": "EQUIPMENT", "name": "Material 2", "code": "MAT-002", "description": "Material for maintenance", "category": "Maintenance", "subtenant_id": "sub-2", "tenant_id": "ten-2"}
GET /v2/material/view/{id}
Retrieve a material by its unique ID.
Authorizations
Sezione intitolata “Authorizations ”Path Parameters
Sezione intitolata “Path Parameters ”ID of the material to retrieve
Responses
Sezione intitolata “ Responses ”Material found
object
Primary key ID for the material
Type of the material
Subtenant ID
Tenant ID
Optional code for the material
Name of the material
Optional description of the material
Optional category of the material
Additional data in JSON format
Office name (read-only)
Project name (read-only)
Project type (read-only)
Indicates if the material is actively owned (read-only)
Indicates if the material’s parent is actively owned (read-only)
Example
{ "material_id": "mat-1", "material_type": "EQUIPMENT", "name": "Material 1", "code": "MAT-001", "description": "Material for construction", "category": "Construction", "subtenant_id": "sub-1", "tenant_id": "ten-1"}
Material not found
DELETE /v2/material/delete/{id}
Delete a material by its unique ID. If force=true, all related entities will also be deleted.
Authorizations
Sezione intitolata “Authorizations ”Path Parameters
Sezione intitolata “Path Parameters ”ID of the material to delete
Query Parameters
Sezione intitolata “Query Parameters ”Force the deletion of the entity and all related entities
Responses
Sezione intitolata “ Responses ”Material 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/material/update/{id}
Update an existing material by its unique ID.
Authorizations
Sezione intitolata “Authorizations ”Path Parameters
Sezione intitolata “Path Parameters ”ID of the material to update
Request Body required
Sezione intitolata “Request Body required ”Material object with updated data
object
Primary key ID for the material
Type of the material
Subtenant ID
Tenant ID
Optional code for the material
Name of the material
Optional description of the material
Optional category of the material
Additional data in JSON format
Example
{ "description": "Updated description", "category": "Updated category"}
Responses
Sezione intitolata “ Responses ”Material updated successfully
object
Primary key ID for the material
Type of the material
Subtenant ID
Tenant ID
Optional code for the material
Name of the material
Optional description of the material
Optional category of the material
Additional data in JSON format
Example
{ "material_id": "mat-1", "description": "Updated description", "category": "Updated category"}
Material not found