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": "fbef9f259e1f5df0e2ff7867"
}
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": "20Ca4B4d-eBE1-85CC-E943-e9CD0Dd48afA",
"location": "Application",
"view": null,
"status": "paused",
"app": "in",
"name": "in non",
"variables": {
"decorators": [
{
"type": "encryption",
"pointer": "/ew/~1/~0"
}
]
},
"last_updated": "2019-08-28T13:04:21.394Z",
"encodingVersion": 1,
"job": {
"_id": "30602781ad9e060e1091e34b",
"task": "b4f",
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"ancestors": [
"2448a8dd2bd91dc7428863c1",
"16ea3ea90f6af59b60ea7455",
"e4753e977eaa3d702b1647fa"
]
},
"incomingRefs": [],
"groups": [
"7f98706932fb74337df9883c",
"fc3e645e1f252ec7585ebac0",
"c4c9584e65c5ec2ee648c34c",
{
"_id": "b54afdc9a3a9ba83bb2779eb",
"provenance": "quis aliquip commodo",
"name": "Excepteur magna consectetur esse aute",
"description": "consequat sit ullamco",
"memberOf": [
{
"groupId": "abaf3bda8e1b4b004f692484",
"aaaManaged": true
},
{
"groupId": "16ebd3c091219bfcb730032f",
"aaaManaged": true
}
],
"assignedRoles": [
{
"roleId": "labore laboris magna officia nisi"
},
{
"roleId": "ut in"
}
],
"inactive": false,
"_meta": {
"created": "1954-04-06T10:40:23.109Z",
"updated": "2023-10-29T05:51:29.301Z",
"migrationVersion": 36040385
}
},
{
"_id": "f9ff102f783f02028d0b6449",
"provenance": "enim Lorem officia",
"name": "veniam nulla nisi eu laborum",
"description": "aliquip",
"memberOf": [
{
"groupId": "e461c0a2794b14df72e26d28",
"aaaManaged": false
},
{
"groupId": "0ed43ff877dedbde31f5a3c2",
"aaaManaged": true
},
{
"groupId": "99acb1b0f3340140b4d9d2dd",
"aaaManaged": true
}
],
"assignedRoles": [
{
"roleId": "commodo aliquip laboris"
},
{
"roleId": "Ut"
},
{
"roleId": "id enim"
},
{
"roleId": "sed cillum aliqua sint in"
}
],
"inactive": true,
"_meta": {
"created": "2007-02-28T05:05:35.255Z",
"updated": "1963-06-28T23:29:41.549Z",
"migrationVersion": 51394849
}
}
],
"type": "operation",
"metrics": {
"start_time": "nisi veniam tempor in pariatur",
"end_time": -82952119.87556233,
"server_id": "esse deserunt",
"finish_state": "success",
"run_time": 3559541.53000319,
"retrying": true,
"user": "9df6c7af736708c7a16fc37a",
"owner": "30e6498c7a1db247f161fca8"
}
}
}