question

kingfisher avatar image
kingfisher asked kingfisher answered

POST an item in a category

I wanted to know how to post an item in a certain category. I used the following syntax referencing the V3 API reference page. curl -X POST -H "Content-Type:application/json" -k -H "Authorization: Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" -d "{""item"":{""id"":""xxxxxxxx7C8XRR""},""category"":{""id"":""1xxxxxxxxxxxxxxxxxxxxx""}}" https://apisandbox.dev.clover.com/v3/...

Thanks.

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

kingfisher avatar image
kingfisher answered

I did get through to posting the item in a certain category. Thank you though. I used following syntax: curl -X POST -H "Content-Type:application/json" -k -H "Authorization: Bearer xxxxxxxxxxxxxxxxx" -d "{""item"":{""id"":""DxxxxxxxxxzzRR"",""name"":""itempost1""},""category"":{""id"":""xxxxxxxxxxxxxxx"",""name"":""Extras""}}" https://apisandbox.dev.clover.com/v3/...

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community