Skip to main content
POST
/
writeback
/
sap
/
mappings
Create Mappings
curl --request POST \
  --url https://{cluster}.cognitedata.com/api/v1/projects/{project}/writeback/sap/mappings \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "items": [
    {
      "externalId": "my.known.id",
      "expression": "\n{\n \"SAPFieldA\": substring(input.CDFFieldA,0,40), \n \"SAPFieldB\": input.CDFFieldB, \n}\n"
    }
  ]
}
'
{
  "items": [
    {
      "externalId": "my.known.id",
      "expression": "\n{\n \"SAPFieldA\": substring(input.CDFFieldA,0,40), \n \"SAPFieldB\": input.CDFFieldB, \n}\n",
      "createdTime": 1730204346000,
      "lastUpdatedTime": 1730204346000
    }
  ]
}

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

Mappings to create.

items
Create SchemaMapping · object[]
required

Response

List of created mappings

items
SchemaMapping · object[]
required
Maximum array length: 100
Last modified on April 23, 2026