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": "288e15727fd93b60d96e37d0"
}
Return
DetailsExampleSchema
Name |
Type |
Description |
result |
object |
The result of the assign operation. |
Copied to Clipboard
{
"message": "Successfully created the requested item",
"data": {
"_id": "A3f36dbf-6E0E-4eff-8BCb-F61C7Fdd6Aa5",
"location": "Adapter",
"view": "nulla culpa in aliquip officia",
"status": "running",
"app": "proident",
"name": "deserunt amet cillum sed",
"variables": {
"decorators": [
{
"type": "encryption",
"pointer": "/o1r7/o/Z/~0"
},
{
"type": "encryption",
"pointer": "/~0/QOL5RSf3/~1/~0/MZ0/Y04ZX/~0/~1/~1/y5,Yk/~0"
},
{
"type": "encryption",
"pointer": "/v3Jp7./n/~0/e20Ef/~1/d/U1YeU0wuTne"
},
{
"type": "encryption",
"pointer": "/s6l/ZcGKVz2/Gy0cw3,/1M/~1"
},
{
"type": "encryption",
"pointer": "/~0/~0/~1"
}
]
},
"last_updated": "1963-02-24T12:10:11.925Z",
"encodingVersion": 1,
"job": {
"_id": "d49cde3db501654316dfe937",
"task": "3a1f",
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"ancestors": null
},
"groups": [
"006a9899179b685a80d81682",
"b1edb71552287a92d2c0ae56",
"3ed5b3090763703b93de6693"
],
"type": "automatic",
"metrics": {
"start_time": "aute sint anim amet",
"end_time": -56563165.72243369,
"server_id": "minim aute voluptate anim commodo",
"finish_state": "success",
"run_time": -96165686.71148498,
"retrying": null,
"user": "Pronghorn",
"owner": "e320d65609a8bf9b89f6e59d"
}
}
}