curl --request POST \
--url https://api.icepanel.io/v1/landscapes/{landscapeId}/versions/{versionId}/diagrams/{diagramId}/export/png \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"filename": "<string>",
"flowId": "<string>",
"flowParentIds": [
"<string>"
],
"flowPathIds": [
"<string>"
],
"name": "<string>",
"organizationId": "<string>",
"overlayGroupId": "<string>",
"overlayIdsFocused": [
"<string>"
],
"overlayIdsHidden": [
"<string>"
],
"overlayIdsPinned": [
"<string>"
],
"overlayTab": "tags",
"theme": "light"
}'
{
"url": "<string>"
}
Use the /export/image endpoint instead
curl --request POST \
--url https://api.icepanel.io/v1/landscapes/{landscapeId}/versions/{versionId}/diagrams/{diagramId}/export/png \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"filename": "<string>",
"flowId": "<string>",
"flowParentIds": [
"<string>"
],
"flowPathIds": [
"<string>"
],
"name": "<string>",
"organizationId": "<string>",
"overlayGroupId": "<string>",
"overlayIdsFocused": [
"<string>"
],
"overlayIdsHidden": [
"<string>"
],
"overlayIdsPinned": [
"<string>"
],
"overlayTab": "tags",
"theme": "light"
}'
{
"url": "<string>"
}
OK
The response is of type object
.