Decision Log

Provides services for managing decisions for Business Partners. Decisions are stored in a Decision Log and can be retrieved, upserted, cleared or deleted.

Clear Decisions

Deletes decisions of a given type. Delete all if type not provided.

SecurityapiKey
Request
path Parameters
storageId
required
string (BusinessPartnerStorageId)

Unique identifier of the Business Partner Storage.

Example: 72d6900fce6b326088f5d9d91049e3e6
Request Body schema: application/json
required
Array of objects (DecisionClearDataSourceParam)

List of Data Source IDs to be cleared.

object (DecisionLogType)

Type of decision log entry.

Responses
200

OK

400

Bad Request

post/storages/{storageId}/decisions/clear
Request samples
application/json
{
  • "type": {
    },
  • "dataSources": [
    ]
}
Response samples
application/json
{
  • "numberOfDeleted": "10"
}

Delete Decisions

Deletes decisions of a given ids.

SecurityapiKey
Request
path Parameters
storageId
required
string (BusinessPartnerStorageId)

Unique identifier of the Business Partner Storage.

Example: 72d6900fce6b326088f5d9d91049e3e6
Request Body schema: application/json
required
required
Array of objects (DecisionDelete) non-empty

List of decisions to be deleted.

Responses
200

OK

400

Bad Request

post/storages/{storageId}/decisions/delete
Request samples
application/json
{
  • "decisions": [
    ]
}
Response samples
application/json
{
  • "numberOfDeleted": "10"
}

Import Curation Decision

Starts curation decision import job

SecurityapiKey
Request
Request Body schema: application/json
required
dataSourceId
string (BusinessPartnerStorageDataSourceId)

Unique identifier for a Data Source of the Storage.

Example: "648824a691d8d2503d65103e"
onlyNotReviewed
boolean
Default: false

If set to true, only curation decisions that have not been reviewed yet will be imported. If set to false, all curation decisions will be imported.

Example: "true"
required
object (CurationDecisionImportJobScope)

Scope of a curation decision import job.

storageId
required
string (BusinessPartnerStorageId)

Unique identifier of the Storage.

Example: "72d6900fce6b326088f5d9d91049e3e6"
Responses
200

OK

400

Bad Request

post/jobs/curationdecisionimportjobs
Request samples
application/json
{
  • "storageId": "72d6900fce6b326088f5d9d91049e3e6",
  • "dataSourceId": "648824a691d8d2503d65103e",
  • "onlyNotReviewed": "true",
  • "scope": {
    }
}
Response samples
application/json
{
  • "id": "35f23c03-1c22-45fe-9484-3ffe769325de",
  • "name": "Process vendor data.",
  • "description": "I started this job to improve quality of our data.",
  • "status": "RUNNING",
  • "statusMessage": "The job failed because storage is empty.",
  • "createdAt": "2024-12-21T01:35:24Z",
  • "user": "742429-234242-4343-232323",
  • "progress": "The job failed because storage is empty.",
  • "attachments": [
    ]
}

List Storage's Decisions

Read decisions from given storage.

SecurityapiKey
Request
path Parameters
storageId
required
string (BusinessPartnerStorageId)

Unique identifier of the Business Partner Storage.

Example: 72d6900fce6b326088f5d9d91049e3e6
query Parameters
businessPartnerIds
Array of strings (DecisionLogBusinessPartnerId) <= 500 items

Only show decisions for listed business partner IDs.

Example: businessPartnerIds=63e635235c06b7396330fe40
limit
integer <int32> >= 1
Default: 500

Number of items to be returned on the page.

Example: limit=100
startAfter
string

Start after the provided pagination ID. Leave empty for the first query. The response will contain a property nextStartAfter which need to be used for any subsequent queries until nextStartAfter is empty. See CDQ - Developer Guidelines.

Example: startAfter=NjI4ZGNkZjAzYjlkMjY4NjhlNjQxNDRm
type
string (DecisionLogTypeTechnicalKeyParam)

Only show decisions of given type.

Enum: Description
CURATIONS

Curation decisions.

NATURAL_PERSONS

Natural person decisions.

DUPLICATES

Duplicate decisions.

Example: type=CURATIONS
Responses
200

OK

400

Bad Request

get/storages/{storageId}/decisions
Request samples
Response samples
application/json
{
  • "values": [
    ],
  • "limit": "100",
  • "startAfter": "5712566172571652",
  • "nextStartAfter": "5712566172571652",
  • "total": "67"
}

Poll Curation Decision Import Job

Poll curation decision import job.

SecurityapiKey
Request
path Parameters
jobId
required
string (JobId)

Unique identifier of a job.

Example: 35f23c03-1c22-45fe-9484-3ffe769325de
Responses
200

OK

400

Bad Request

get/jobs/curationdecisionimportjobs/{jobId}
Request samples
Response samples
application/json
{
  • "id": "35f23c03-1c22-45fe-9484-3ffe769325de",
  • "name": "Process vendor data.",
  • "description": "I started this job to improve quality of our data.",
  • "status": "RUNNING",
  • "statusMessage": "The job failed because storage is empty.",
  • "createdAt": "2024-12-21T01:35:24Z",
  • "user": "742429-234242-4343-232323",
  • "progress": "The job failed because storage is empty.",
  • "attachments": [
    ]
}

Upsert Decisions

Upsert decisions for given storage. Decisions are distinguished by business partner id and type. Already existing decision will be replaced.

SecurityapiKey
Request
path Parameters
storageId
required
string (BusinessPartnerStorageId)

Unique identifier of the Business Partner Storage.

Example: 72d6900fce6b326088f5d9d91049e3e6
Request Body schema: application/json
required
required
Array of objects (DecisionsUpsertEntry) non-empty

List of decisions to be upserted.

Responses
200

OK

400

Bad Request

post/storages/{storageId}/decisions
Request samples
application/json
{
  • "decisions": [
    ]
}
Response samples
application/json
{
  • "numberOfProvidedDecisions": "10",
  • "numberOfInserts": "5",
  • "numberOfUpdates": "5"
}