curl --request GET \
--url https://{cluster}.cognitedata.com/api/v1/projects/{project}/diagram-parsing/diagrams/{diagramId}/with-paths \
--header 'Authorization: Bearer <token>'{
"connections": [
{
"createdTime": 1730204346000,
"diagramId": "my.known.id",
"endNodeId": "my.known.id",
"externalId": "my.known.id",
"isUserDetected": true,
"lastUpdatedTime": 1730204346000,
"startNodeId": "my.known.id"
}
],
"createdTime": 1730204346000,
"entities": [
{
"createdTime": 1730204346000,
"diagramId": "my.known.id",
"externalId": "my.known.id",
"isAssetVerified": true,
"isUserDetected": true,
"lastUpdatedTime": 1730204346000,
"paths": [
{
"id": "<string>",
"d": "<string>",
"styleId": "<string>"
}
],
"symbolId": "my.known.id",
"annotationId": {
"space": "<string>",
"externalId": "my.known.id"
},
"assetId": {
"space": "<string>",
"externalId": "my.known.id"
}
}
],
"externalId": "my.known.id",
"fileId": {
"space": "<string>",
"externalId": "my.known.id"
},
"height": "<string>",
"lastUpdatedTime": 1730204346000,
"libraryId": "my.known.id",
"pageNumber": 123,
"status": "Failed",
"viewBox": "<string>",
"width": "<string>",
"message": "<string>"
}Required capabilities:
DiagramParsingAcl:READ
Get a single diagram containing entities, connections, and SVG data by using its external id
curl --request GET \
--url https://{cluster}.cognitedata.com/api/v1/projects/{project}/diagram-parsing/diagrams/{diagramId}/with-paths \
--header 'Authorization: Bearer <token>'{
"connections": [
{
"createdTime": 1730204346000,
"diagramId": "my.known.id",
"endNodeId": "my.known.id",
"externalId": "my.known.id",
"isUserDetected": true,
"lastUpdatedTime": 1730204346000,
"startNodeId": "my.known.id"
}
],
"createdTime": 1730204346000,
"entities": [
{
"createdTime": 1730204346000,
"diagramId": "my.known.id",
"externalId": "my.known.id",
"isAssetVerified": true,
"isUserDetected": true,
"lastUpdatedTime": 1730204346000,
"paths": [
{
"id": "<string>",
"d": "<string>",
"styleId": "<string>"
}
],
"symbolId": "my.known.id",
"annotationId": {
"space": "<string>",
"externalId": "my.known.id"
},
"assetId": {
"space": "<string>",
"externalId": "my.known.id"
}
}
],
"externalId": "my.known.id",
"fileId": {
"space": "<string>",
"externalId": "my.known.id"
},
"height": "<string>",
"lastUpdatedTime": 1730204346000,
"libraryId": "my.known.id",
"pageNumber": 123,
"status": "Failed",
"viewBox": "<string>",
"width": "<string>",
"message": "<string>"
}Access token issued by the CDF project's configured identity provider. Access token must be an OpenID Connect token, and the project must be configured to accept OpenID Connect tokens. Use a header key of 'Authorization' with a value of 'Bearer $accesstoken'. The token can be obtained through any flow supported by the identity provider.
External ID of a diagram The external ID provided by the client. Must be unique for the resource type.
255"my.known.id"
Cursor for paging through results. In general, if a response contains a nextCursor
property, it means that there may be more results, and you should pass that value as the
cursor parameter in the next request.
Note that the cursor may or may not be encrypted, but either way, it is not intended to be decoded. Its internal structure is not a part of the public API, and may change without notice. You should treat it as an opaque string and not attempt to craft your own cursors.
"4zj0Vy2fo0NtNMb229mI9r1V3YG5NBL752kQz1cKtwo"
Diagram with its entities, connections, and SVG paths data
Diagram with its entities, connections, and SVG paths data
Show child attributes
The number of milliseconds since 00:00:00 Thursday, 1 January 1970, Coordinated Universal Time (UTC), minus leap seconds.
x >= 01730204346000
Show child attributes
The external ID of the diagram
255"my.known.id"
ID of a file the diagram is parsed from
Show child attributes
Height attribute of the SVG diagram
The number of milliseconds since 00:00:00 Thursday, 1 January 1970, Coordinated Universal Time (UTC), minus leap seconds.
x >= 01730204346000
The external ID of a library the diagram is parsed with
255"my.known.id"
The page number of a file the diagram is parsed from
Parsing status of a diagram
Failed, InProgress, InQueue, Pending, Success ViewBox attribute of the SVG diagram
Width attribute of the SVG diagram
Message containing errors or other information
Was this page helpful?