Materials

Update a material

This endpoint allows you to update a specific material.

patch/materials/{materialId}

Request

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

Path parameters

materialIdstring required

The Material ID

Request body

_type'FOLDER' | 'MATERIAL' required

Type of the material

namestring

Name of the material

codestring

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.