Skip to main content
POST
/
diagram-parsing
/
geometries
Create geometries
curl --request POST \
  --url https://{cluster}.cognitedata.com/api/v1/projects/{project}/diagram-parsing/geometries \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "items": [
    {
      "externalId": "my.known.id",
      "paths": [
        {
          "id": "<string>",
          "d": "<string>",
          "styleId": "<string>"
        }
      ],
      "symbolId": "my.known.id"
    }
  ]
}
'
{
  "items": [
    {
      "createdTime": 1730204346000,
      "externalId": "my.known.id",
      "lastUpdatedTime": 1730204346000,
      "paths": [
        {
          "id": "<string>",
          "d": "<string>",
          "styleId": "<string>"
        }
      ],
      "symbolId": "my.known.id"
    }
  ]
}

Authorizations

Authorization
string
header
required

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.

Body

application/json

Geometries to create.

List of geometries to create

items
object[]
required
Required array length: 1 - 100 elements

Response

List of geometries

items
object[]
required
Last modified on April 23, 2026