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": "f3b680dfbeaf5ea7aed47b1f"
}
Return
DetailsExampleSchema
Name |
Type |
Description |
result |
object |
The result of the assign operation. |
Copied to Clipboard
{
"message": "Successfully created the requested item",
"data": {
"_id": "d2daBf3E-A2a3-1E75-DC9F-0E814f0f6Cae",
"location": "Broker",
"view": null,
"status": "failure",
"app": "cupidatat occaecat reprehenderit",
"name": "do ullamco deserunt consequat",
"variables": {
"decorators": [
{
"type": "encryption",
"pointer": "/ClMV0gdBs/~1/oawko/~1/zZGl+Y.9Cl/~0/Bj/RcCjigZ/p1jKWUD/~1"
}
]
},
"last_updated": "2019-08-01T09:26:11.392Z",
"encodingVersion": 1,
"job": {
"_id": "538144b66cdacd52ea94592f",
"task": "e28f",
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"ancestors": [
"ce4d2806566dc9b32c49a6af",
"920d18a822e9307a474c48fc",
"7fa0d746088576c0a86b18e5",
"cc32eee1f472c1fb5fc1b11f",
"7c372137f01e1b5319fa815a"
]
},
"incomingRefs": [],
"groups": [
"d3fc4de42250f5a008af526e"
],
"type": "automatic",
"metrics": {
"start_time": "ea ut Duis eiusmod",
"end_time": 97048053.60104197,
"server_id": "do quis anim minim enim",
"finish_state": "running",
"run_time": -30274446.751593724,
"retrying": null,
"user": "a914dff5f9a56e63240b3f5e",
"owner": "dd26735f253c4b06f60c62a8"
}
}
}