question

chetan-purohit avatar image
chetan-purohit asked ·

How to associate tag/label to any item in POST call?

Hi,

I am trying to create item using my web app and in that I have added one POST call for the same. I am trying to attach one tag with the item. The payload is as following:

{
    "defaultTaxRates":false,
    "price": 10,
    "name":"New Tag Attach Test 10",
    "tags":
        [{
            "id":"WTJGZDW91PVJR"
        }]
}

I believe that I have not done any mistake, that's why clover server is creating item without responding with any error. But I could not see that tag attached to the newly created item.

Looking for your help and precious suggestions. Thank you in advance.

1 comment
10 |2000 characters needed characters left characters exceeded

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

You will have to update the item after its creation to add the tag.

0 Likes 0 · ·

0 Answers

Welcome to the
Clover Developer Community