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": "634edbd37868385c338a2acc"
}
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": "CB6DaB6c-082D-b970-7033-B5BcB47e0b37",
"location": "Adapter",
"view": "dolor",
"status": "complete",
"app": "officia ex adipisicing proident cupidatat",
"name": "dolore",
"variables": {
"decorators": [
{
"type": "encryption",
"pointer": "/Vm1cPqaXP/~0/aIMis-/alFk/CPKQ/~1/D+/GGbiQFs/oSKtQWLV"
}
]
},
"last_updated": "1960-03-02T15:08:24.99Z",
"encodingVersion": 1,
"job": {
"_id": "778145e7855f982d8d0f1ba2",
"task": "e28f",
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"ancestors": [
"a7ea14933f0e0d1b21ffc3f7",
"5e760b79690f4e35ebb20826"
]
},
"groups": [
{
"_id": "8dd7f6ebb583e1420c1a1aca",
"provenance": "consectetur",
"name": "ex voluptate",
"description": "ex esse minim nisi dolor",
"memberOf": [
{
"groupId": "0d7825522c0958d77efeef96",
"aaaManaged": true
},
{
"groupId": "571a64e7a9d39847bf7adcfa",
"aaaManaged": true
},
{
"groupId": "321185d57d7e2d4d8a71fbce",
"aaaManaged": true
},
{
"groupId": "4e599377be0ec65330f5566a",
"aaaManaged": false
}
],
"assignedRoles": [
{
"roleId": "adipisicing"
},
{
"roleId": "mollit id cillum aliqua"
},
{
"roleId": "elit"
}
],
"inactive": false,
"_meta": {
"created": "1999-08-31T11:58:43.904Z",
"updated": "1977-12-16T05:04:40.246Z",
"migrationVersion": 42816531
}
},
"ceb16907d22b75310b89a916",
{
"_id": "2e921665dda2776467789c0d",
"provenance": "ea enim Lorem",
"name": "Duis minim mollit",
"description": "esse dolor labore reprehenderit sit",
"memberOf": [
{
"groupId": "f0686cfb5c8a15a4b9938c88",
"aaaManaged": true
},
{
"groupId": "a616f6f71950dc29c6efb95b",
"aaaManaged": true
},
{
"groupId": "785acb50c6b4329a575663f3",
"aaaManaged": true
}
],
"assignedRoles": [
{
"roleId": "anim Lorem quis enim ullamco"
},
{
"roleId": "laboris irure consectetur incididunt"
},
{
"roleId": "aute officia consequat Ut"
}
],
"inactive": false,
"_meta": {
"created": "1974-02-08T13:00:44.011Z",
"updated": "2019-12-25T04:38:18.956Z",
"migrationVersion": -32429502
}
},
"c9e9a070e8ced897a5767bcb",
"cfdc0c370b5abd223118723b"
],
"type": "operation",
"metrics": {
"start_time": "consequat reprehenderit in",
"end_time": -78558711.13596082,
"server_id": "occaecat exercitation",
"finish_state": "success",
"run_time": 97576067.55392927,
"retrying": null,
"user": "Pronghorn",
"owner": "24bd97aba87baf5019bef86e"
}
}
}