Accelerate the Value of Data

Update multiple tasks by filter

Learn how this operation enables you to update multiple tasks by using a filter.

Note: The workflow tasks are connected to objects. For example, Entities or Relations. Only the tasks for which the user has READ access to these related objects will be updated using a filer.

Request

Operation Endpoint:

POST /{tenantId}/jobs/updateTasks
Table 1. Parameters
ParameterNameRequiredDetails
HeadersAuthorizationYes Access Token in the format Bearer <accessToken> (see details in Authentication API).
Content-TypeYesContent-Type: application/json.
EnvironmentURLYesReltio environmental URL.
BodyfilterYesTask filter.
assigneeYesTask assignee.
processInstanceIdNoProcess instance ID.
processTypeNoProcess definition type. Use this field to filter on a single process type.
processTypesNoProcess definition type. Use this field to filter on multiple process types. For example, dataChangeRequestReview and recommendForDelete.
suspendedNoBoolean state of the task: possibilities are true or false.
createdByNoInitiator of the process instance.
priorityClassNoPriority class of the tasks.
taskTypeNoType of tasks.
createdAfterNoTime in milliseconds.
createdBeforeNoTime in milliseconds.
stateNoValidation state of the process instance (default = valid).
objectURIsNoList of Reltio object URIs (entity/relation) filtering by AND-condition.
changesYesList of changes.
objectURIsNoList of Reltio object URIs (entity/relation) filtering by AND-condition.
assigneeNoAssignee of the active task.
dueDateNoTime in milliseconds.
processInstanceCommentNoComment in string format.
priorityNoTask priority.
excludeNoList of tasks in string format.

Sample Request JSON:

{
   "filter":{
      "assignee":"string",
      "processInstanceId":"string",
      "processTypes":"array",
      "suspended":true,
      "createdBy":"string",
      "priorityClass":"Urgent",
      "taskType":"string",
      "createdAfter":0,
      "createdBefore":0,
      "state":"valid",
      "objectURIs":[
         "string"
      ]
   },
   "changes":{
      "objectURIs":[
         "string"
      ],
      "assignee":"string",
      "dueDate":0,
      "processInstanceComment":"string",
      "priority":0
   },
   "exclude":[
      "string"
   ]
}

Response

Response Structure:

  • error: Returned if an error is encountered, contains details of the issue:
    • errorCode: 5-digit error code
    • errorMessage: error message
    • errorData: details of the error:
      • exception: exception message
      • stack: stack trace
    • innerError: details of the error from the Reltio API:
      • errorMessage: Reltio API error message
      • errorCode: Reltio API error code
      • innerErrorData: Reltio API inner error data
  • status: Result of the operation; possible values are OK or failed

Example

POST {workflowURL}/{tenantId}/jobs/updateTasks

Sample Response JSON:

{
   "status":"OK",
   "backgroundTaskId":"2b1ac782-1459-45e0-979a-8f1fc65e50fd"
}