Referring to this API:
https://developer.domo.com/portal/8260c0e561f08-cards-api
which could definitely benefit from more clarity and cohesion in its documentation.
In particular I have been unable to do POST
requests for creating a card. I have obtained the authorisation token already, and are able to perform other requests such as updating a dataset.
I'm not sure if it's due to the body, but even with the sample data that I'm sending from
https://developer.domo.com/portal/5bba626873010-create-chart-card
gives me a mighty network error.
curl --request POST \
--url 'https://api.domo.com/v1/cards/chart?pageId={PAGE_ID_HERE}' \
--header 'Accept: */*' \
--header 'Authorization: {AUTH_TOKEN_HERE}' \
--header 'Content-Type: application/json' \
--data '{DATA}'
Using the provided sample data gives a 403 error. That makes sense, considering the sample data's fields seems to be placeholders.
I would like to check if anyone is able to create a card via the API, since it does get a bit tedious when guessing-and-checking possible data bodies.