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
Welcome!
Welcome!
Categories
- All Categories
- 2K Product Ideas
- 2K Ideas Exchange
- 1.6K Connect
- 1.3K Connectors
- 311 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 3.8K Transform
- 660 Datasets
- 117 SQL DataFlows
- 2.2K Magic ETL
- 816 Beast Mode
- 3.3K Visualize
- 2.5K Charting
- 84 App Studio
- 46 Variables
- 778 Automate
- 190 Apps
- 482 APIs & Domo Developer
- 83 Workflows
- 23 Code Engine
- 41 AI and Machine Learning
- 20 AI Chat
- 1 AI Playground
- 2 AI Projects and Models
- 18 Jupyter Workspaces
- 412 Distribute
- 120 Domo Everywhere
- 281 Scheduled Reports
- 11 Software Integrations
- 145 Manage
- 141 Governance & Security
- 8 Domo Community Gallery
- 48 Product Releases
- 12 Domo University
- 5.4K Community Forums
- 41 Getting Started
- 31 Community Member Introductions
- 115 Community Announcements
- 4.8K Archive