question

Bryanne Vega avatar image
Bryanne Vega asked Bryanne Vega answered

(REST API) Delete association of item on Category

How do I delete the association of an item on a category, I tried looking at the docs, but the web REST API explorer does not give any information at all.

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

Bryanne Vega avatar image
Bryanne Vega answered

After looking deeper, I found that my JSON was not correct and also I needed a small detail.

You need to work with:

Example: Category Items ( https://docs.clover.com/build/web-app... )

To remove the association, send a POST with ?delete=true appended to the URL, along with the same payload. 

j.Initialize(CreateMap("elements":Array(CreateMap("category":CreateMap("id":categoryToUpdate.id),"item":CreateMap("id":itemID)))))
data = j.ToString
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