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
- 311 Workbench
- 7 Cloud Amplifier
- 9 Federated
- 3.8K Transform
- 655 Datasets
- 114 SQL DataFlows
- 2.2K Magic ETL
- 811 Beast Mode
- 3.3K Visualize
- 2.5K Charting
- 80 App Studio
- 45 Variables
- 770 Automate
- 190 Apps
- 481 APIs & Domo Developer
- 76 Workflows
- 23 Code Engine
- 36 AI and Machine Learning
- 19 AI Chat
- AI Playground
- AI Projects and Models
- 17 Jupyter Workspaces
- 408 Distribute
- 119 Domo Everywhere
- 279 Scheduled Reports
- 10 Software Integrations
- 142 Manage
- 138 Governance & Security
- 8 Domo Community Gallery
- 48 Product Releases
- 12 Domo University
- 5.4K Community Forums
- 41 Getting Started
- 31 Community Member Introductions
- 114 Community Announcements
- 4.8K Archive