Get SVG data by diagramId

Get the SVG data of a file by externalId of a diagram.

Securityoidc-token or oauth2-client-credentials or oauth2-open-industrial-data or oauth2-auth-code
Request
path Parameters
diagramId
required
string (CogniteExternalId) <= 255 characters

External ID of a diagram

Example: my.known.id
Responses
200

The SVG data for a file

400

The response for a failed request.

get/diagram-parsing/svg-data/diagram/{diagramId}
Request samples
Response samples
application/json
{
  • "height": 0,
  • "paths": {
    • "property1": {
      },
    • "property2": {
      }
    },
  • "pathStyles": {
    • "property1": {
      },
    • "property2": {
      }
    },
  • "viewBox": "string",
  • "width": 0
}