Summary
Assign a task to a user
Description
Assign a Task to a user.
Route
POST /operations-manager/tasks/:taskId/assign
Roles
admin
apiwrite
engineering
operations
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
taskId |
string |
yes |
The id of the Task iteration to be assigned. |
userId |
string |
yes |
The identifier of the user to assign to the task |
Copied to Clipboard
{
"userId": "4ae9e2351f7f72ab94890fd9"
}
Return
DetailsExampleSchema
Name |
Type |
Description |
result |
object |
The result of the assign operation. |
Copied to Clipboard
{
"message": "Successfully imported 3 of 4 documents",
"data": {
"_id": "d78EB1ea-c271-eA8A-76EA-a2ccbEE1479B",
"location": "Adapter",
"view": null,
"status": "scheduled",
"app": "labore amet dolore laboris aliqua",
"name": "sint amet",
"variables": {
"decorators": [
{
"type": "encryption",
"pointer": "/beqnPG/~1/~1/v+cmr,2c/~0/~1/Y/t9w-96av8ms/~1"
},
{
"type": "encryption",
"pointer": "/~0/w5CIF29zh"
},
{
"type": "encryption",
"pointer": "/fP2Bm/~1/wU/B8iPnu7/T/LvLzZ/hCrtz6/YwQp+zp"
}
]
},
"last_updated": "1956-01-26T19:56:09.444Z",
"encodingVersion": 1,
"job": {
"_id": "dd50ffb219abf632ebf83320",
"task": "3a1f",
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"ancestors": null
},
"incomingRefs": [],
"groups": [
"5603accde4e6e8ba1865b113",
"7c5f7bd036dcbc41724393ca"
],
"type": "operation",
"metrics": {
"start_time": "Ut dolore",
"end_time": -21298623.277312204,
"server_id": "sed qui ullamco ad",
"finish_state": "success",
"run_time": 72877134.43897,
"retrying": true,
"user": "",
"owner": "Pronghorn"
}
}
}