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": "1f62a636d9f9f0fc18168305"
}
Return
DetailsExampleSchema
Name |
Type |
Description |
result |
object |
The result of the assign operation. |
Copied to Clipboard
{
"message": "Successfully retrieved search results",
"data": {
"_id": "C2c3f0A8-4Cac-6C33-dfeB-c9E02A09Aa81",
"location": "Adapter",
"view": "pariatur veniam tempor est",
"status": "scheduled",
"app": "ullamco amet officia culpa",
"name": "minim reprehenderit nulla non",
"variables": {
"decorators": [
{
"type": "encryption",
"pointer": "/NLSi,/jzivp/D/~0/Qy,Vo/DI9VW/~0/I-48,/h/~0/wRt"
}
]
},
"last_updated": "1954-09-20T16:08:15.365Z",
"encodingVersion": 1,
"job": {
"_id": "323bdcb6334a26177f4cbc8f",
"task": "b4f",
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"ancestors": [
"9e32b121aa0a713c3fac8893",
"0dee9c7eeacb90d6be256977",
"d259c9f6cf2d93200a9ff1f4"
]
},
"incomingRefs": [],
"groups": [
{
"_id": "99aaa83f18c0645411d0454a",
"provenance": "amet",
"name": "voluptate ut ullamco aliqua",
"description": "culpa in",
"memberOf": [
{
"groupId": "bd561f50a1a3636908a4d59b",
"aaaManaged": true
}
],
"assignedRoles": [
{
"roleId": "pariatur voluptate"
},
{
"roleId": "adipisicing sint consequat veniam"
},
{
"roleId": "ad cupidatat"
},
{
"roleId": "officia"
}
],
"inactive": true,
"_meta": {
"created": "2024-11-13T06:50:55.092Z",
"updated": "1966-01-30T13:08:33.939Z",
"migrationVersion": -50057328
}
},
"979f11dc1eb9a9b449f9ab32",
"351d3ea83c380464008b7f84"
],
"type": "operation",
"metrics": {
"start_time": "consequat dolor",
"end_time": -23967965.08135961,
"server_id": "adipisicing in magna consectetur",
"finish_state": "success",
"run_time": -75243549.37026407,
"retrying": null,
"user": "",
"owner": ""
}
}
}