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": "999483c8d8337227e1eb935f"
}
Return
DetailsExampleSchema
Name |
Type |
Description |
result |
object |
The result of the assign operation. |
Copied to Clipboard
{
"message": "Successfully imported 3 of 4 documents",
"data": {
"_id": "90Be5c4f-Fcd4-8fBb-DCE0-2fCB11Bb2B58",
"location": "Application",
"view": null,
"status": "incomplete",
"app": "occaecat nisi",
"name": "est et laboris amet aute",
"variables": {
"decorators": [
{
"type": "encryption",
"pointer": "/~0/~1/idW0taOGXkn/~0/GuKdH/P2T7Bo0qbi/JHzpWgTz0"
}
]
},
"last_updated": "1969-08-31T09:11:36.561Z",
"encodingVersion": 1,
"job": {
"_id": "feb6283eba4455acc697b936",
"task": "e28f",
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"ancestors": null
},
"groups": [
"5ca4d0a2a628c2e26f6229ce",
"69fa48a3ed1f7e7eb1b80044",
"a9df2bc2b4e6e5a114cc288e"
],
"type": "manual",
"metrics": {
"start_time": "enim eiusmod",
"claim_time": "1991-12-04T02:08:24.771Z",
"end_time": -90092833.7053494,
"server_id": "consequat eiusmod dolore sed deserunt",
"finish_state": "success",
"run_time": -83510366.76373416,
"user": {
"_id": "6b11ef33e899134117650dbb",
"provenance": "labore proident laborum in cillum",
"username": "sunt culpa laboris",
"firstname": "culpa dolore",
"memberOf": [
{
"groupId": "259b3d479511bf448c1b0726",
"aaaManaged": true
},
{
"groupId": "2462ae45d864b4db2596fab4",
"aaaManaged": false
},
{
"groupId": "38de4a302e6a223f48c77f86",
"aaaManaged": true
},
{
"groupId": "f825dc0f7524ea37136eecd1",
"aaaManaged": true
}
],
"assignedRoles": [
{
"roleId": "Excepteur et cillum"
},
{
"roleId": "magna"
},
{
"roleId": "aliqua laboris ad occaecat"
},
{
"roleId": "nostrud sunt ex anim deserunt"
},
{
"roleId": "incididunt eu nostrud consectetur"
}
],
"inactive": true,
"lastLogin": "1963-06-27T13:55:58.892Z",
"_meta": {
"created": "1991-06-25T04:29:45.67Z",
"updated": "2011-03-22T06:48:13.64Z",
"migrationVersion": -99694580
},
"email": "deserunt id"
},
"owner": {
"_id": "987aa00a4ce697cb6c5bb86e",
"provenance": "Duis exercitation",
"username": "incididunt",
"firstname": "ut eiusmod incididunt sint in",
"memberOf": [
{
"groupId": "6d3ce226856346f9aadb0e8d",
"aaaManaged": true
},
{
"groupId": "6c296dfb4f721e7c4f636d16",
"aaaManaged": true
}
],
"assignedRoles": [
{
"roleId": "eiusmod ut consectetur officia"
},
{
"roleId": "dolor"
},
{
"roleId": "mollit adipisicing pariatur amet"
},
{
"roleId": "in"
},
{
"roleId": "id Excepteur dolore sint minim"
}
],
"inactive": true,
"lastLogin": "2005-11-26T07:24:34.53Z",
"_meta": {
"created": "2010-01-29T01:05:58.728Z",
"updated": "2017-10-10T19:12:48.588Z",
"migrationVersion": 34997714
},
"email": "culpa amet"
}
}
}
}