Material
Questi contenuti non sono ancora disponibili nella tua lingua.
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
Sezione intitolata “Operations” POST /v2/material/index
Returns a paginated and filterable list of materials.
Use POST to allow complex filters via JSON payload.
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.
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.
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.
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.
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