Trying to update a description field of a Item

in Development
Hi,
Iam trying to update the description of a Item with postman.
But the API just returns the Item object with the old description.
Can someone help me with the correct settings?
url: (I know i have to fill in the account id here ;)
https://api.merchantos.com/API/Account/{accountid}/Item/1296.json
body set to raw:
{
"description":"hahaha voor ff dan"
}
Content-Type: tried 2 versions
application/x-www-form-urlencoded
&
application/json
thx for your help!
6 comments
Hi @programmeuropwielen,
Thank you for reaching out to us.
Both content types will work. I've tested this out, when I changed the description of an item it will change without any errors.
Can you send me the payload?
I use this as the payload
{
"description": "hahaha voor ff dan"
}
thx for your help :)
Hi @programmeuropwielen,
Are you getting an error?
No it just gives me back the Item as a whole.. I think that is normal behaviour.. but without the description changed. Just tried to change the quantity of a shop and that worked. Can a description be locked for api maybe? read only?
Hey @programmeuropwielen,
Try making your requests with https://api.lightspeedapp.com/API/Account
Let us know if that makes a difference
Adrian Samuel
Software Developer
Lightspeed HQ
Ok, i'll let you know tomorrow!