Material
Manage materials, including registration, update, deletion, and advanced search.
Materials can be linked to offices, projects, and categories, and support metadata and filtering.
- Version
- 2.0.0
- OpenAPI version
- 3.0.0
Operations
Section titled “Operations” POST /v2/material/index
Returns a paginated and filterable list of materials.
Use POST to allow complex filters via JSON payload.
Request Body
Section titled “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
Section titled “ 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
Section titled “Headers ”Current page
Total number of pages
Number of items per page
Total number of items
create
Section titled “create” POST /v2/material/create
Create a new material by providing the required details.
Request Body required
Section titled “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
Section titled “ 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.
Path Parameters
Section titled “Path Parameters ”ID of the material to retrieve
Responses
Section titled “ 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
Section titled “delete” DELETE /v2/material/delete/{id}
Delete a material by its unique ID.
If force=true, all related entities will also be deleted.
Path Parameters
Section titled “Path Parameters ”ID of the material to delete
Query Parameters
Section titled “Query Parameters ”Force the deletion of the entity and all related entities
Responses
Section titled “ 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
update
Section titled “update” PUT /v2/material/update/{id}
Update an existing material by its unique ID.
Path Parameters
Section titled “Path Parameters ”ID of the material to update
Request Body required
Section titled “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
Section titled “ 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