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": "2aecfdab3793cb9e6351e24f"
}
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": "aCAaeFDd-68fA-E6B0-0cA8-1ec02d98BFF8",
"location": "Application",
"view": null,
"status": "scheduled",
"app": "incididunt ullamco",
"name": "do",
"variables": {
"decorators": [
{
"type": "encryption",
"pointer": "/~0/~0/Ovt-/~1/~0/~1/~1/D6oV2UD/mUqwHO/guxox"
},
{
"type": "encryption",
"pointer": "/~0/~0/gaR1pFw/F52q45gNyQ8/~1/gk0QXkw/~0/A7HeqNT+z/SgpZqDH9/~0"
},
{
"type": "encryption",
"pointer": "/u//ybTBqsi/~1/es0bct9XcK/~1/Y/BW8/~0/c//~0"
}
]
},
"last_updated": "2006-03-04T22:40:28.08Z",
"encodingVersion": 1,
"job": {
"_id": "4dafaac4f711bdbd64eaeab0",
"task": "3a1f",
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"ancestors": null
},
"incomingRefs": [],
"groups": [
"e23f49e1eca3b216765935a5",
{
"_id": "a4fab12352dca42baaa8b92e",
"provenance": "cillum enim occaecat tempor",
"name": "elit minim",
"description": "Duis eu officia",
"memberOf": [
{
"groupId": "63f6fdfb28ff92237b8b05b0",
"aaaManaged": false
},
{
"groupId": "d611df8c79b4f74e62ad8802",
"aaaManaged": true
},
{
"groupId": "2242a7828694f1cab5a4e593",
"aaaManaged": false
},
{
"groupId": "0e277889b8d94226f72af24f",
"aaaManaged": true
}
],
"assignedRoles": [
{
"roleId": "fugiat consectetur eu aliquip et"
},
{
"roleId": "ipsum incididunt aliqua"
},
{
"roleId": "irure reprehenderit cupidatat ut tempor"
},
{
"roleId": "aute magna"
}
],
"inactive": true,
"_meta": {
"created": "1967-03-08T19:29:18.283Z",
"updated": "1994-04-05T08:21:24.224Z",
"migrationVersion": 23891188
}
}
],
"type": "operation",
"metrics": {
"start_time": "nulla cillum nisi",
"end_time": -53443931.09903205,
"server_id": "dolore laboris tempor",
"finish_state": "success",
"run_time": -51606011.12248471,
"retrying": null,
"user": "",
"owner": "Pronghorn"
}
}
}