Materials

Get material measurement units

get

The API gives the ability to get all material measurement units.

Authorizations
x-api-keystringRequired
Header parameters
x-tenant-idstring Β· uuidOptional

Tenant id (uuid v4)

Responses
200Success
application/json
get
/api/public/materials/measurement_units

Create material

post

The API gives the ability to create a new material and specify material properties.

Scenarios for processing the received data

πŸ“ All required + optional parameters were passed

The system creates material in the system.

UI

  • Newly created material is added to the Materials page to the {Category} tab and {Subcategory} section, which were passed in the β€œCREATE a material” request.

    • If category_name wasn't specified in the request, then material is added to the β€œWithout category” tab on the Materials page.

    • If subcategory_name wasn't specified in the request, then material is added to the {Category} tab which was passed in the β€œCREATE a material” request, but added to the β€œWithout subcategory” section on the Materials page.

Authorizations
x-api-keystringRequired
Header parameters
x-tenant-idstring Β· uuidOptional

Tenant id (uuid v4)

Body
namestringRequired

Name of the material

Example: Premium Steel Rod
measurement_unit_idstring Β· uuidRequired

UUID of the measurement unit for this material

Example: 550e8400-e29b-41d4-a716-446655440000
material_external_idstringOptional

External identifier for the material from supplier or other system

Example: MAT-2024-001
descriptionstringOptional

Detailed description of the material

Example: High-grade steel rod with corrosion resistance, suitable for construction
material_category_idstring Β· uuidOptional

UUID of the material category

Example: 550e8400-e29b-41d4-a716-446655440001
material_subcategory_idstring Β· uuidOptional

UUID of the material subcategory

Example: 550e8400-e29b-41d4-a716-446655440002
material_supplier_idstring Β· uuidOptional

UUID of the material supplier

Example: 550e8400-e29b-41d4-a716-446655440003
delivery_timeall ofOptional

Delivery time information for the material

Example: {"value":3,"unit":"h"}
objectOptional
purchase_pricenumber Β· min: 1Optional

Purchase price of the material in base currency

Example: 25.99
actual_pricenumber Β· min: 1Optional

Current actual price of the material in base currency

Example: 28.5
materialCharacteristicsstring Β· uuid[] Β· max: 10Optional

Array of material characteristic UUIDs (max 10)

Example: ["550e8400-e29b-41d4-a716-446655440004","550e8400-e29b-41d4-a716-446655440005"]
tagsstring Β· uuid[]Optional

Array of tag UUIDs for categorization and filtering

Example: ["550e8400-e29b-41d4-a716-446655440006","550e8400-e29b-41d4-a716-446655440007"]
Responses
post
/api/public/materials

Add photo to material

post

The API gives the ability to add photo to material.

Scenarios for processing the received data

πŸ“ Photo was passed successfully

System sets this photo as a main photo for a material.

Authorizations
x-api-keystringRequired
Path parameters
material_idstringRequired

Material ID

Header parameters
x-tenant-idstring Β· uuidOptional

Tenant id (uuid v4)

Body
urlstringRequired

Photo url

Example: https://example.com/photos/material-photo.jpg
Responses
post
/api/public/materials/{material_id}/photos

Update material

patch

The API gives the ability to update materials properties. Any parameters not provided will be left unchanged.

Authorizations
x-api-keystringRequired
Path parameters
material_idstringRequired

Material ID

Header parameters
x-tenant-idstring Β· uuidOptional

Tenant id (uuid v4)

Body
namestringOptional

Name of the material

Example: Premium Steel Rod
measurement_unit_idstring Β· uuidOptional

UUID of the measurement unit for this material

Example: 550e8400-e29b-41d4-a716-446655440000
material_external_idstringOptional

External identifier for the material from supplier or other system

Example: MAT-2024-001
descriptionstringOptional

Detailed description of the material

Example: High-grade steel rod with corrosion resistance, suitable for construction
material_category_idstring Β· uuidOptional

UUID of the material category

Example: 550e8400-e29b-41d4-a716-446655440001
material_subcategory_idstring Β· uuidOptional

UUID of the material subcategory

Example: 550e8400-e29b-41d4-a716-446655440002
material_supplier_idstring Β· uuidOptional

UUID of the material supplier

Example: 550e8400-e29b-41d4-a716-446655440003
delivery_timeall ofOptional

Delivery time information for the material

Example: {"value":3,"unit":"h"}
objectOptional
purchase_pricenumber Β· min: 1Optional

Purchase price of the material in base currency

Example: 25.99
actual_pricenumber Β· min: 1Optional

Current actual price of the material in base currency

Example: 28.5
statusstring Β· enumOptional

Status of the material

Example: ACTIVEPossible values:
Responses
200Success
application/json
patch
/api/public/materials/{material_id}

Add parameters to a material

post

The API gives the ability to add parameter to material.

Authorizations
x-api-keystringRequired
Path parameters
material_idstringRequired

Material ID

Header parameters
x-tenant-idstring Β· uuidOptional

Tenant id (uuid v4)

Body
Responses
post
/api/public/materials/{material_id}/parameters

Remove material parameter from material

delete

The API gives the ability to remove parameter from material.

Authorizations
x-api-keystringRequired
Path parameters
material_idstringRequired

Material ID

parameter_idstring Β· UUIDRequired

Parameter ID

Header parameters
x-tenant-idstring Β· uuidOptional

Tenant id (uuid v4)

Responses
200Success
application/json
delete
/api/public/materials/{material_id}/parameters/{parameter_id}

Update material parameter value for material

patch

The API gives the ability to update material parameter value.

Authorizations
x-api-keystringRequired
Path parameters
material_idstringRequired

Material ID

parameter_idstring Β· UUIDRequired

Parameter ID

Header parameters
x-tenant-idstring Β· uuidOptional

Tenant id (uuid v4)

Body
parameter_value_idstring Β· uuidRequired

Unique identifier of the parameter value to update

Example: b86fa12a-76fc-46f5-8a3e-bf39e7be4c4e
Responses
200Success
application/json
patch
/api/public/materials/{material_id}/parameters/{parameter_id}

Add tag to a material

post

The API gives the ability to add tag to material.

Authorizations
x-api-keystringRequired
Path parameters
material_idstringRequired

Material ID

Header parameters
x-tenant-idstring Β· uuidOptional

Tenant id (uuid v4)

Body
tag_idsstring Β· uuid[]Required

Array of tag UUIDs for categorization and filtering

Example: ["550e8400-e29b-41d4-a716-446655440006","550e8400-e29b-41d4-a716-446655440007"]
Responses
post
/api/public/materials/{material_id}/tags

Remove tag from a material

delete

The API gives the ability to remove tag from material.

Authorizations
x-api-keystringRequired
Path parameters
material_idstringRequired

Material ID

tag_idstringRequired

Tag ID

Header parameters
x-tenant-idstring Β· uuidOptional

Tenant id (uuid v4)

Responses
200Success
application/json
delete
/api/public/materials/{material_id}/tags/{tag_id}

Last updated