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": "ca718999b85c433795a123c5"
}
Return
DetailsExampleSchema
Name |
Type |
Description |
result |
object |
The result of the assign operation. |
Copied to Clipboard
{
"message": "Successfully created the requested item",
"data": {
"_id": "f96937BB-98cf-c2F2-950a-5b5ee1D21c8E",
"location": "Adapter",
"view": "non do tempor qui",
"status": "incomplete",
"app": "dolor non reprehenderit deserunt irure",
"name": "commodo in",
"variables": {
"decorators": [
{
"type": "encryption",
"pointer": "/ug8UtOU1/~1/~0/xA0B/~1/~1/~0/~0"
},
{
"type": "encryption",
"pointer": "/s9Xf/~0/ZvKvy/zWaKf/~1/~0/OU/~1/~1"
},
{
"type": "encryption",
"pointer": "/v-ZF/~1/~1/~0/ET/Y09vdVmD/~1/~1/U"
}
]
},
"last_updated": "1970-06-20T14:56:07.034Z",
"encodingVersion": 1,
"job": {
"_id": "6806ae0f9f57be00474a6000",
"task": "e28f",
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"ancestors": null
},
"groups": [
{
"_id": "54e594400167671ad718000b",
"provenance": "aliquip Ut occaecat id sunt",
"name": "eiusmod do culpa ad enim",
"description": "Lorem",
"memberOf": [
{
"groupId": "502cb8a84629cdaa080fd164",
"aaaManaged": false
}
],
"assignedRoles": [
{
"roleId": "aliqua veniam quis"
},
{
"roleId": "sit mollit Duis voluptate culpa"
}
],
"inactive": true,
"_meta": {
"created": "2000-08-26T07:01:41.183Z",
"updated": "2013-07-13T05:33:13.629Z",
"migrationVersion": -5218219
}
}
],
"type": "manual",
"metrics": {
"start_time": "fugiat ut sit",
"claim_time": "1999-05-15T15:46:29.765Z",
"end_time": -11474246.08469589,
"server_id": "voluptate in ullamco",
"finish_state": "success",
"run_time": -6180123.013707966,
"user": "Pronghorn",
"owner": ""
}
}
}