curl --request POST \
--url https://{cluster}.cognitedata.com/api/v1/projects/{project}/diagram-parsing/libraries/{libraryId}/copy \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>"
}
'{
"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:WRITE
Creates a new library by copying an existing library, including all its symbols and geometries.
curl --request POST \
--url https://{cluster}.cognitedata.com/api/v1/projects/{project}/diagram-parsing/libraries/{libraryId}/copy \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>"
}
'{
"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"
Name of the new library
The name of the copied library
The copied 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?