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": "b113b9c621e7c99464e108e6"
}
Return
DetailsExampleSchema
Name |
Type |
Description |
result |
object |
The result of the assign operation. |
Copied to Clipboard
{
"message": "Successfully created the requested item",
"data": {
"_id": "3C3BB0BF-C0dc-bc73-a894-31705f452Abb",
"location": "Application",
"view": "incididunt fugiat in",
"status": "canceled",
"app": "voluptate",
"name": "culpa tempor",
"variables": {
"decorators": [
{
"type": "encryption",
"pointer": "/kt,3qXg/~0/ydOIH24ly/~0/~0/nuXJqf/~1/Ewuhgw/HYbPU"
},
{
"type": "encryption",
"pointer": "/dZlM5O5f/GYmgfOTV/wIjdTh/~0/ZFRaRmQROI/~1"
},
{
"type": "encryption",
"pointer": "/Xk9j/LYi/~1/nFJ0qU"
}
]
},
"last_updated": "2006-01-07T20:06:21.245Z",
"encodingVersion": 1,
"job": {
"_id": "f1dec0d00aa62558d00d5dd8",
"task": "e28f",
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"ancestors": [
"1908816918269c54d8dc7809"
]
},
"groups": [
{
"_id": "f6ade8f969963162cac5d328",
"provenance": "dolore Excepteur nulla adipisicing ut",
"name": "velit consequat aliquip",
"description": "sed cupidatat pariatur",
"memberOf": [
{
"groupId": "cf3b44b0fbcfb32c9fc3c352",
"aaaManaged": false
},
{
"groupId": "50467ad58b090b887b8cb5be",
"aaaManaged": true
},
{
"groupId": "47268be68d2d5eed91d1a18d",
"aaaManaged": false
}
],
"assignedRoles": [
{
"roleId": "Ut nulla"
},
{
"roleId": "ut aute velit"
},
{
"roleId": "magna officia Ut"
},
{
"roleId": "nulla non dolor sed"
}
],
"inactive": false,
"_meta": {
"created": "2002-10-30T01:25:50.601Z",
"updated": "1972-07-10T03:32:00.111Z",
"migrationVersion": 81553621
}
},
"4061c7d769c14804e806a1c9"
],
"type": "operation",
"metrics": {
"start_time": "elit pariatur dolore Excepteur adipisicing",
"end_time": 33232141.174403697,
"server_id": "deserunt in reprehenderit officia",
"finish_state": "canceled",
"run_time": -18465963.34173265,
"retrying": null,
"user": "Pronghorn",
"owner": {
"_id": "74802c2cdfe2b677f2cbba8e",
"provenance": "consectetur culpa in in",
"username": "labore commodo nisi",
"firstname": "Excepteur proident",
"memberOf": [
{
"groupId": "f27331a396e4de838eef6f6a",
"aaaManaged": false
},
{
"groupId": "c36a20a9428bb33b6dd1a2d4",
"aaaManaged": true
}
],
"assignedRoles": [
{
"roleId": "ea consequat adipisicing est dolore"
},
{
"roleId": "Excepteur officia"
},
{
"roleId": "aliquip dolor"
}
],
"inactive": true,
"lastLogin": "1993-02-11T04:57:43.713Z",
"_meta": {
"created": "1969-12-09T13:39:07.227Z",
"updated": "2000-02-29T12:13:14.793Z",
"migrationVersion": 81141108
},
"email": "commodo amet elit"
}
}
}
}