Can I make REST calls using JSON instead of form data?

Hi All,

I had thought the answer to this is No, and I don't see any mention of using JSON in the docs.  But after some testing I found that I am able to send POST data as JSON, and it does work... at least partially.

For example, I can create a new Group using this call.

curl --location 'https://myverint.com/api.ashx/v2/groups.json' \
--header 'Rest-User-Token: [REMOVED]' \
--header 'Content-Type: application/json' \
--data '{
    "Name": "Test Group",
    "GroupType": "Joinless"
}'

And this creates a Group... BUT I'm not able to include ExtendedAttributes when sending as JSON.  So like I said, it works partially.

So my question is, is sending JSON for REST calls officially supported by Verint Community?

Thanks.

Parents Reply Children
No Data