Edit existing item

In this case you must specify the id in the URL and change the data you wanna update.

As every tilby resource, you can do a PUT request. First of all you have to save the original content of the resource (simply doing a GET request), edit what do you want, and resend it in a PUT request.

Path Params
string
required

id of the item that need to be updated

Body Params

Object data that need to be updated

allergens
array of objects
allergens
alternative_descriptions
array of objects
alternative_descriptions
alternative_names
array of objects
alternative_names
boolean
barcodes
array of objects
barcodes
bom_components
array of objects
bom_components
string
length between 0 and 255
string

assign to this item the category with this code. If no category is found, a new one will be created. This will override category_id;

integer

must be a valid category_id. Check /categories to get the right category

channels
array of objects
channels
boolean
string
length between 0 and 255
string
combinations
array of objects
combinations
components
array of objects
components
number
≥ 0
date-time

it set by default from api, but it can be overwrited

integer

must be a valid category_id. Check /suppliers to get the right supplier

date-time

if it is not null item is deleted

string

assign to this item the department with this code. If no department is found, a new one will be created with vat_id of 0 (N4). This will override department_id

integer

department_id for corresponded pricelist

string

assign to this item the department with this code. If no department is found, a new one will be created with vat_id of 0 (N4). This will override department_id

integer

department_id for corresponded pricelist

string

assign to this item the department with this code. If no department is found, a new one will be created with vat_id of 0 (N4). This will override department_id

integer

department_id for corresponded pricelist

string

assign to this item the department with this code. If no department is found, a new one will be created with vat_id of 0 (N4). This will override department_id

integer

department_id for corresponded pricelist

string

assign to this item the department with this code. If no department is found, a new one will be created with vat_id of 0 (N4). This will override department_id

integer

department_id for corresponded pricelist

string

assign to this item the department with this code. If no department is found, a new one will be created with vat_id of 0 (N4). This will override department_id

integer

department_id for corresponded pricelist

string

assign to this item the department with this code. If no department is found, a new one will be created with vat_id of 0 (N4). This will override department_id

integer

department_id for corresponded pricelist

string

assign to this item the department with this code. If no department is found, a new one will be created with vat_id of 0 (N4). This will override department_id

integer

department_id for corresponded pricelist

string

assign to this item the department with this code. If no department is found, a new one will be created with vat_id of 0 (N4). This will override department_id

integer

department_id for corresponded pricelist

string

assign to this item the department with this code. If no department is found, a new one will be created with vat_id of 0 (N4). This will override department_id

integer

department_id for corresponded pricelist

string
length between 0 and 255
boolean
string
length between 0 and 255
images
array of objects

for each updates, all images items are deleted and recreated. So you do not need set the id

images
integer
boolean
Defaults to false
boolean

Set true if the item is used to compose quick menus

string
length between 0 and 25
boolean
string
required
length between 0 and 255

The item name

boolean

Set true make the item not discountable in cash register

boolean

Set true to show it in orders or cash register

string
length between 0 and 255
string
length between 0 and 255
string
length between 0 and 255
string
length between 0 and 255
string
length between 0 and 20
number
required
≥ 0
number
≥ 0
number
≥ 0
number
≥ 0
number
≥ 0
number
≥ 0
number
≥ 0
number
≥ 0
number
≥ 0
number
≥ 0
printers
array
printers
number
boolean
Defaults to false
string
length between 0 and 255
string | null

if it is set it Must be unique. CASE CHAIN STORE: If it is not null, this field is used as primary key in the chain store and it will be added/modified/deleted automatically in all chain's stores.

boolean

Set true if the item variations with a linked item should be inserted as a stand-alone item

string
string
length between 0 and 255
number

in minutes

string
length between 0 and 10
date-time

it set by default from api, but it can be overwrited

string

must be unique

variations
array of objects
variations
number
0 to 30
number
≥ 0
Responses

404

Item not found

Language
Credentials
Bearer
JWT
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json