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": "6b2c2bd97b4407b70a5d0d80"
}
Return
DetailsExampleSchema
| Name |
Type |
Description |
| result |
object |
The result of the assign operation. |
Copied to Clipboard
{
"message": "Successfully created the requested item",
"data": {
"_id": "d2CDeCB9-8EAe-0bfe-6d57-977eCC8c997A",
"location": "Adapter",
"view": null,
"status": "complete",
"app": "cillum laboris",
"name": "sunt adipisicing sit sed",
"variables": {
"decorators": [
{
"type": "encryption",
"pointer": "/~1/~0/~0/~1"
},
{
"type": "encryption",
"pointer": "/Ox8-Xy/daxjDj/luu8m/~1/~0/vR0/xQi/~1"
},
{
"type": "encryption",
"pointer": "/Yv/~0/~0/YXRPi4t-/~1/~1"
}
]
},
"last_updated": "1999-03-15T03:20:04.701Z",
"encodingVersion": 1,
"job": {
"_id": "49c02d861ce8c41b6a51f13d",
"task": "b4f",
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"ancestors": [
"707f45dbaa76867e2d4e5700",
"75ee4e9f65bb9c5b7d376c10",
"bc8e0573a30dce325a2bffa6",
"4bc95a61c3e249529d982878",
"17c685f20af203c7661f4906"
]
},
"groups": [
"c4e8f43fe96a0ae0284d5c85"
],
"type": "operation",
"metrics": {
"start_time": "dolore ex nulla labore",
"end_time": -63788464.07757886,
"server_id": "consequat",
"finish_state": "success",
"run_time": 73800542.12074581,
"retrying": null,
"user": {
"_id": "dbcbea7042cbc473cfaf4bae",
"provenance": "mollit dolor in ea",
"username": "proident mollit sint aliqua nisi",
"firstname": "consequat",
"memberOf": [
{
"groupId": "ca9b13dffa85e47f5bbb333f",
"aaaManaged": false
},
{
"groupId": "a93c543d9ffd9397d6adf122",
"aaaManaged": false
},
{
"groupId": "288b395ff4cd384c24257488",
"aaaManaged": false
},
{
"groupId": "eb5fb2389bb048a1f23a4f61",
"aaaManaged": false
}
],
"assignedRoles": [
{
"roleId": "dolore"
},
{
"roleId": "ut commodo"
},
{
"roleId": "id Duis nisi Excepteur"
},
{
"roleId": "ipsum ullamco"
},
{
"roleId": "cupidatat labore occaecat"
}
],
"inactive": false,
"lastLogin": "1995-06-12T05:14:18.554Z",
"_meta": {
"created": "1965-08-20T12:18:57.753Z",
"updated": "2020-08-13T12:31:17.033Z",
"migrationVersion": -96383505
},
"email": "Excepteur"
},
"owner": "c9da87e84816a6aa06577ca9"
}
}
}