curl --request POST \
--url https://{cluster}.cognitedata.com/api/v1/projects/{project}/context/entitymatching/pipelines \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"items": [
{
"sources": {
"dataSetIds": [
{
"externalId": "my.known.id"
}
],
"resource": "assets"
},
"targets": {
"dataSetIds": [
{
"externalId": "my.known.id"
}
],
"resource": "assets"
},
"externalId": "my.known.id",
"name": "myPipeline",
"description": "My pipeline",
"modelParameters": {
"featureType": "bigram"
},
"trueMatches": [
{
"sourceId": 23,
"targetExternalId": "my.known.id"
}
],
"confirmedMatches": [
{
"sourceId": 23,
"targetExternalId": "my.known.id"
}
],
"rejectedMatches": [
{
"sourceId": 23,
"targetExternalId": "my.known.id"
}
],
"useExistingMatches": false,
"generateRules": true,
"replacements": [
{
"field": "*",
"string": "Bottom-hole pressure",
"replacement": "bhp"
}
],
"rules": [],
"rejectedRules": [],
"scoreThreshold": 0.7,
"scheduleInterval": 7200
}
]
}
'{
"items": [
{
"id": 4503599627370496,
"createdTime": 1730204346000,
"sources": {
"dataSetIds": [
{
"externalId": "my.known.id"
}
],
"resource": "assets"
},
"targets": {
"dataSetIds": [
{
"externalId": "my.known.id"
}
],
"resource": "assets"
},
"lastUpdatedTime": 1730204346000,
"owner": "alice@example.com",
"externalId": "my.known.id",
"name": "myPipeline",
"description": "My pipeline",
"modelParameters": {
"featureType": "bigram"
},
"trueMatches": [
{
"sourceId": 23,
"targetExternalId": "my.known.id"
}
],
"confirmedMatches": [
{
"sourceId": 23,
"targetExternalId": "my.known.id"
}
],
"rejectedMatches": [
{
"sourceId": 23,
"targetExternalId": "my.known.id"
}
],
"useExistingMatches": false,
"generateRules": true,
"replacements": [
{
"field": "*",
"string": "Bottom-hole pressure",
"replacement": "bhp"
}
],
"rules": [],
"rejectedRules": [],
"scoreThreshold": 0.7,
"scheduleInterval": 7200
}
]
}Required capabilities:
entitymatchingAcl:WRITEassetsAcl:READtimeSeriesAcl:READeventsAcl:READsequencesAcl:READfilesAcl:READ
Create entity matching pipelines.
curl --request POST \
--url https://{cluster}.cognitedata.com/api/v1/projects/{project}/context/entitymatching/pipelines \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"items": [
{
"sources": {
"dataSetIds": [
{
"externalId": "my.known.id"
}
],
"resource": "assets"
},
"targets": {
"dataSetIds": [
{
"externalId": "my.known.id"
}
],
"resource": "assets"
},
"externalId": "my.known.id",
"name": "myPipeline",
"description": "My pipeline",
"modelParameters": {
"featureType": "bigram"
},
"trueMatches": [
{
"sourceId": 23,
"targetExternalId": "my.known.id"
}
],
"confirmedMatches": [
{
"sourceId": 23,
"targetExternalId": "my.known.id"
}
],
"rejectedMatches": [
{
"sourceId": 23,
"targetExternalId": "my.known.id"
}
],
"useExistingMatches": false,
"generateRules": true,
"replacements": [
{
"field": "*",
"string": "Bottom-hole pressure",
"replacement": "bhp"
}
],
"rules": [],
"rejectedRules": [],
"scoreThreshold": 0.7,
"scheduleInterval": 7200
}
]
}
'{
"items": [
{
"id": 4503599627370496,
"createdTime": 1730204346000,
"sources": {
"dataSetIds": [
{
"externalId": "my.known.id"
}
],
"resource": "assets"
},
"targets": {
"dataSetIds": [
{
"externalId": "my.known.id"
}
],
"resource": "assets"
},
"lastUpdatedTime": 1730204346000,
"owner": "alice@example.com",
"externalId": "my.known.id",
"name": "myPipeline",
"description": "My pipeline",
"modelParameters": {
"featureType": "bigram"
},
"trueMatches": [
{
"sourceId": 23,
"targetExternalId": "my.known.id"
}
],
"confirmedMatches": [
{
"sourceId": 23,
"targetExternalId": "my.known.id"
}
],
"rejectedMatches": [
{
"sourceId": 23,
"targetExternalId": "my.known.id"
}
],
"useExistingMatches": false,
"generateRules": true,
"replacements": [
{
"field": "*",
"string": "Bottom-hole pressure",
"replacement": "bhp"
}
],
"rules": [],
"rejectedRules": [],
"scoreThreshold": 0.7,
"scheduleInterval": 7200
}
]
}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.
Pipelines to create
1 - 100 elementsShow child attributes
Created pipelines
Show child attributes
Was this page helpful?