New: build custom CDF applications with Cognite Flows. Documentation · What's new.
curl --request POST \
--url https://{cluster}.cognitedata.com/api/v1/projects/{project}/diagram-parsing/parsing/instant \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"document": {
"fileId": {
"space": "<string>",
"externalId": "my.known.id"
},
"pageNumber": 123
},
"libraryId": "my.known.id"
}
'{
"entities": [
{
"externalId": "my.known.id",
"pathIds": [
"<string>"
],
"symbolId": "my.known.id"
}
],
"status": "Failed",
"message": "<string>"
}Required capabilities:
DiagramParsingAcl:WRITE
Start an instant parsing job on a file to detect diagram symbols based on the specified library. Parsed outputs do not persist.
curl --request POST \
--url https://{cluster}.cognitedata.com/api/v1/projects/{project}/diagram-parsing/parsing/instant \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"document": {
"fileId": {
"space": "<string>",
"externalId": "my.known.id"
},
"pageNumber": 123
},
"libraryId": "my.known.id"
}
'{
"entities": [
{
"externalId": "my.known.id",
"pathIds": [
"<string>"
],
"symbolId": "my.known.id"
}
],
"status": "Failed",
"message": "<string>"
}Documentation Index
Fetch the complete documentation index at: https://docs.cognite.com/llms.txt
Use this file to discover all available pages before exploring further.
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.
Specifies the library to use when instant parsing the given file.
Temporary diagram entity detections in a given file based on the provided library.
Was this page helpful?