Materials

Create a new material or folder

This endpoint allows you to create a new material.

Materials are items that can be of type MATERIAL or of type FOLDER. A folder is a material that is the "parent" of other materials, for example, as a family or group of materials.

The parent_id is required if the type is MATERIAL

post/materials

Request

  • Base URL: https://api.infraspeak.com/v3
  • URL: https://api.infraspeak.com/v3/materials
  • Auth: HTTP bearer

Request body

_type'FOLDER' | 'MATERIAL' required

Type of the material

namestring required

Name of the material

codestring required

Code of the material. It must be unique

observationstring

Description of the material

mean_pricenumber

The mean price of the item. Used only when _type is "MATERIAL"

unitsstring

What unit should this item be measured with. Required if _type is "MATERIAL"

parent_idinteger

The id of the parent folder for this item. Required if _type is "MATERIAL"

default_sell_pricenumber

The default sell price for this item.

default_sell_vatnumber

The default sell VAT for this item.

Response

OK

Changes

No recorded changes to this operation across all 1 revision of this API.