API Request DrawIO Export returns 400 Bad request
See original GitHub issueDescribe the bug When trying to use API for export DrawIO diagram according to doc I get 400 Bad request error with the description: {“errors”:[{“start”:{“line”:1,“column”:1,“offset”:0},“error”:" should have required property ‘command’“,“path”:”"}]}
To Reproduce Steps to reproduce the behavior:
-
Make request to API:
curl --location --request POST 'https://<your-api-gateway-id>.execute-api.<deployment-region>.amazonaws.com/Prod/resources' \ --header 'Authorization: Bearer <your-token> \ --header 'Content-Type: text/plain' \ --data-raw '{"elements":{"nodes":[], "edges": []}}'
-
Get response 400 Bad request error with the description: {“errors”:[{“start”:{“line”:1,“column”:1,“offset”:0},“error”:" should have required property ‘command’“,“path”:”"}]}
Expected behavior Receive a URL that when clicked will open up DrawIO in the browser and show my graph.
Browser (please complete the following information):
- curl 7.55.1 (Windows) libcurl/7.55.1 WinSSL
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (5 by maintainers)
Top GitHub Comments
Looks like you had success, @traublmak. Good to know.
If you don’t mind I’m going to re-open this so we don’t forget to add the documentation fixes. 😃
thank you @svozza, @ConnorKirk