Reassign Tasks
post
/process/api/v1/tasks/reassign
Reassign tasks to user(s) and/or role(s).
Request
There are no request parameters for this operation.
Supported Media Types
- application/json
Root Schema : schema
Type:
object
Match All
Show Source
-
object
schema
Reassign request object
-
-
object
properties
Nested Schema : schema
Type:
object
Reassign request object
Show Source
-
comment: string
comment
-
identities: array
identities
Only the ID of identity input is considered and not name.
Nested Schema : identities
Type:
array
Only the ID of identity input is considered and not name.
Show Source
Nested Schema : Identity-allOf[1]
Type:
Show Source
object
-
type: string
Allowed Values:
[ "USER", "GROUP", "ROLE" ]
Response
Supported Media Types
- application/json
200 Response
Successful operation.
Nested Schema : BulkReassignResponseItem
Type:
Show Source
object
-
errorMessage: string
-
status: string
Allowed Values:
[ "Success", "Failed" ]
-
taskId: string
400 Response
Bad request - invalid input
401 Response
Unauthorized
429 Response
Too many requests
500 Response
Internal server error
503 Response
Too many exceptions or too slow requests
Examples
Example: Reassign tasks
The following example shows how to reassign tasks by submitting a POST request on the REST resource using cURL. For more information about cURL, see cURL Access. For more information about endpoint URL structure, see Send Requests.
curl -X 'POST' \
'https://oracle.com/process/api/v1/tasks/reassign' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"identities": [
{
"id": "string",
"name": "string",
"displayName": "string",
"type": "USER"
}
],
"comment": "string",
"taskIds": [
"string"
]
}'
Example Format of 200 Operation Successful Response
{
"totalCount": 2,
"sucessCount": 2,
"failedCount": 0,
"items": [
{
"taskId": "a0a0e129-53f7-11ef-873e-0abcb",
"status": "Success"
},
{
"taskId": "882c3e21-637c-11ef-873e-0abcb",
"status": "Success"
}
]
}