So, given the following category:
curl --request GET \ --url 'https://sandbox.dev.clover.com/v3/merchants/{MID}/categories/01RK004VVF99T?expand=items' \ --header 'Accept: application/json' \ --header 'Authorization: Bearer {TOKEN}'
{"id": "01RK004VVF99T", "name": "Pizza", "sortOrder": 1, "items": {"elements": [ ]}}
And the following item:
curl --request GET \ --url 'https://sandbox.dev.clover.com/v3/merchants/{MID}/items/ZT1J6B5S6R1SY?expand=categories' \ --header 'Accept: application/json' \ --header 'Authorization: Bearer {TOKEN}'
{"id": "ZT1J6B5S6R1SY", "hidden": true, "available": true, "autoManage": false, "name": "Personal Pizza", "price": 900, "priceType": "FIXED", "defaultTaxRates": true, "isRevenue": true, "categories": {"elements": [ ]}, "modifiedTime": 1659913743000}
Why does the following association between the two do nothing?
curl --request POST \ --url https://sandbox.dev.clover.com/v3/merchants/{MID}/category_items \ --header 'Accept: application/json' \ --header 'Authorization: Bearer {TOKEN}' \ --data-raw '{"elements":[{"category":{"id":"01RK004VVF99T"},"item":{"id":"ZT1J6B5S6R1SY"}}]}'
{}
I can't seem to make modifier group associations work either. The actual API documentation is not great, but I'm following what I found here: https://docs.clover.com/docs/managing-categories#associating-items-with-a-category (and other posts in this community).
Note that the response code for the call is 200, no matter what garbage I throw at it, including malformed JSON.