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
- 1.9K Product Ideas
- 1.9K Ideas Exchange
- 1.6K Connect
- 1.3K Connectors
- 305 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 3K Transform
- 107 SQL DataFlows
- 648 Datasets
- 2.2K Magic ETL
- 4K Visualize
- 2.5K Charting
- 774 Beast Mode
- 75 App Studio
- 43 Variables
- 733 Automate
- 186 Apps
- 471 APIs & Domo Developer
- 62 Workflows
- 14 DomoAI
- 40 Predict
- 17 Jupyter Workspaces
- 23 R & Python Tiles
- 403 Distribute
- 117 Domo Everywhere
- 277 Scheduled Reports
- 9 Software Integrations
- 137 Manage
- 134 Governance & Security
- 8 Domo Community Gallery
- 44 Product Releases
- 12 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 113 Community Announcements
- 4.8K Archive