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": "e70a867d086c38985f5dd81d"
}
Return
DetailsExampleSchema
| Name |
Type |
Description |
| result |
object |
The result of the assign operation. |
Copied to Clipboard
{
"message": "Successfully created the requested item",
"data": {
"_id": "DbbDd9cc-f71d-ffF1-ADCb-0fB55440B392",
"location": "Application",
"view": "nisi culpa incididunt dolore mollit",
"status": "complete",
"app": "quis Lorem qui Duis",
"name": "fugiat laboris dolore sunt",
"variables": {
"decorators": [
{
"type": "encryption",
"pointer": "/~0/~1/~0/~1/~1/UyxfAE/ePJUkY/aRDz.K4nUZ"
},
{
"type": "encryption",
"pointer": "/~1/jpChdMU/g/~1/hjoz7/~0"
},
{
"type": "encryption",
"pointer": "/~1/~0/H8rd4fI/~0/~1/ek/~0/Wm/AQYBl/~1/HJIc.WxUb"
},
{
"type": "encryption",
"pointer": "/~0/~1/MGLfjgE/~0/KXSU3/~0"
},
{
"type": "encryption",
"pointer": "/~1/~1/~0/mDK/~0/~0/~1/x+U0O3D9TRr/~0/~1"
}
]
},
"last_updated": "1975-07-16T14:39:50.208Z",
"encodingVersion": 1,
"job": {
"_id": "f7ae3dfaad4466e1930bf39d",
"task": "b4f",
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"ancestors": null
},
"incomingRefs": [],
"groups": [
"55043ae89b42f9a2323e4143",
"949e93fba595ee73c54f8c1a",
{
"_id": "30396ea2980ece01dc6e46dc",
"provenance": "nulla tempor exercitation",
"name": "occaecat esse sunt",
"description": "ex non mollit anim ut",
"memberOf": [
{
"groupId": "34ebbfee9e69c95b0576e2f0",
"aaaManaged": false
},
{
"groupId": "5a80027f738ada7bae10a136",
"aaaManaged": true
}
],
"assignedRoles": [
{
"roleId": "incididunt cupidatat ad est"
},
{
"roleId": "nulla in aliquip minim Ut"
}
],
"inactive": true,
"_meta": {
"created": "1961-12-27T02:52:03.343Z",
"updated": "2004-03-16T13:50:26.875Z",
"migrationVersion": -87244282
}
}
],
"type": "manual",
"metrics": {
"start_time": "aliqua dolor non labore reprehenderit",
"claim_time": "2016-04-07T17:37:24.067Z",
"end_time": -93589698.88295734,
"server_id": "eu voluptate ullamco do consectetur",
"finish_state": "failure",
"run_time": 9629738.572503716,
"user": {
"_id": "82405888b35941310c205572",
"provenance": "Lorem veniam proident aute laborum",
"username": "dolore in ullamco",
"firstname": "Lorem",
"memberOf": [
{
"groupId": "d94361adfe8cfa49be28480b",
"aaaManaged": false
},
{
"groupId": "04d60c5547b47ef5fab074f1",
"aaaManaged": false
}
],
"assignedRoles": [
{
"roleId": "sed"
}
],
"inactive": true,
"lastLogin": "1948-10-19T20:58:44.233Z",
"_meta": {
"created": "1968-02-02T22:01:32.151Z",
"updated": "1956-10-31T10:51:32.393Z",
"migrationVersion": 7103775
},
"email": "sunt"
},
"owner": "Pronghorn"
}
}
}