How to create a card via the DOMO Card API

Referring to this 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
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.
Answers
-
I don't have the answer but I can confirm the same behavior. I also get Network Error when I attempt to utilize this API.
I am able to successfully use List Cards:
developer.domo.com/portal/80e9ecc922752-list-cardsBut I am unable (I receive 500 Internal Server Error) to use "Get Chart Card Definition":
developer.domo.com/portal/42d54af2095ac-get-chart-card-definitionI would think being able to get an existing card definition would shed more light on what the expected POST request would look like.
0 -
I'm also struggling with the above. We need to update a lot of card details en masse, and it would be really good to get this API working again properly.
0
Categories
- All Categories
- 2K Product Ideas
- 2K Ideas Exchange
- 1.6K Connect
- 1.3K Connectors
- 310 Workbench
- 7 Cloud Amplifier
- 9 Federated
- 3K Transform
- 113 SQL DataFlows
- 651 Datasets
- 2.2K Magic ETL
- 4K Visualize
- 2.5K Charting
- 795 Beast Mode
- 78 App Studio
- 44 Variables
- 755 Automate
- 187 Apps
- 480 APIs & Domo Developer
- 71 Workflows
- 17 DomoAI
- 40 Predict
- 17 Jupyter Workspaces
- 23 R & Python Tiles
- 407 Distribute
- 118 Domo Everywhere
- 279 Scheduled Reports
- 10 Software Integrations
- 141 Manage
- 137 Governance & Security
- 8 Domo Community Gallery
- 47 Product Releases
- 12 Domo University
- 5.4K Community Forums
- 41 Getting Started
- 31 Community Member Introductions
- 113 Community Announcements
- 4.8K Archive