curl --request GET \
--url https://{cluster}.cognitedata.com/api/v1/projects/{project}/diagram-parsing/libraries/{libraryId} \
--header 'Authorization: Bearer <token>'{
"createdTime": 1730204346000,
"externalId": "my.known.id",
"lastUpdatedTime": 1730204346000,
"name": "<string>",
"scope": "Global",
"symbols": [
{
"assetTypeId": {
"space": "<string>",
"externalId": "my.known.id"
},
"externalId": "my.known.id",
"geometries": [
{
"createdTime": 1730204346000,
"externalId": "my.known.id",
"lastUpdatedTime": 1730204346000,
"paths": [
{
"id": "<string>",
"d": "<string>",
"styleId": "<string>"
}
],
"symbolId": "my.known.id"
}
],
"lastUpdatedTime": 1730204346000,
"libraryId": "my.known.id",
"createdTime": 1730204346000
}
]
}Required capabilities:
DiagramParsingAcl:READ
Returns a single library with all its symbols and geometries.
curl --request GET \
--url https://{cluster}.cognitedata.com/api/v1/projects/{project}/diagram-parsing/libraries/{libraryId} \
--header 'Authorization: Bearer <token>'{
"createdTime": 1730204346000,
"externalId": "my.known.id",
"lastUpdatedTime": 1730204346000,
"name": "<string>",
"scope": "Global",
"symbols": [
{
"assetTypeId": {
"space": "<string>",
"externalId": "my.known.id"
},
"externalId": "my.known.id",
"geometries": [
{
"createdTime": 1730204346000,
"externalId": "my.known.id",
"lastUpdatedTime": 1730204346000,
"paths": [
{
"id": "<string>",
"d": "<string>",
"styleId": "<string>"
}
],
"symbolId": "my.known.id"
}
],
"lastUpdatedTime": 1730204346000,
"libraryId": "my.known.id",
"createdTime": 1730204346000
}
]
}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 library The external ID provided by the client. Must be unique for the resource type.
255"my.known.id"
A single library with its symbols and geometries
Library with all of its symbols and geometries joined
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 the library
255"my.known.id"
The number of milliseconds since 00:00:00 Thursday, 1 January 1970, Coordinated Universal Time (UTC), minus leap seconds.
x >= 01730204346000
The name of the library
Global or project scope where the library is available
Global, Project List of symbols of this library
Show child attributes
Was this page helpful?