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": "75ef93f303f5604555b56820"
}
Return
DetailsExampleSchema
Name |
Type |
Description |
result |
object |
The result of the assign operation. |
Copied to Clipboard
{
"message": "Successfully created the requested item",
"data": {
"_id": "1217aFFD-bf4E-e2F1-F0ef-6feAeaD4AAC4",
"location": "Broker",
"view": "tempor velit cupidatat irure amet",
"status": "complete",
"app": "in minim",
"name": "deserunt",
"variables": {
"decorators": [
{
"type": "encryption",
"pointer": "/~1/~0/wo//A2e/~0/~1/W+Eu/~1/v/MAcdVO+"
},
{
"type": "encryption",
"pointer": "/~0/gOTrE.t5w/~1/AvZn/~0/~1/Y"
},
{
"type": "encryption",
"pointer": "/~0/~0/~0/HL+7/dL/S5Mk8RzYd/0"
},
{
"type": "encryption",
"pointer": "/t0pE4/JRC2d-l2/c-UACbBC0zb/e/I9/~1/~0/v8cxxy+2/~0/~0"
}
]
},
"last_updated": "1981-09-27T17:54:31.156Z",
"encodingVersion": 1,
"job": {
"_id": "b9706a95cdb14a0376e8cddd",
"task": "b4f",
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"ancestors": null
},
"incomingRefs": [],
"groups": [
"44e16de6fb20bb1b76915958",
"9924fef0ce0c548e223839e4"
],
"type": "automatic",
"metrics": {
"start_time": "labore amet",
"end_time": -74403189.37450057,
"server_id": "cillum minim magna tempor",
"finish_state": "running",
"run_time": -86057216.63116999,
"retrying": false,
"user": "Pronghorn",
"owner": "13979139e198731b062a8681"
}
}
}