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": "8785f7490f0504c9f0b99ce2"
}
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": "cA3a0772-dfaC-CfFF-6c13-d3e9c41009dB",
"location": "Adapter",
"view": "dolore quis dolore voluptate commodo",
"status": "scheduled",
"app": "ex irure pariatur",
"name": "irure",
"variables": {
"decorators": [
{
"type": "encryption",
"pointer": "/cb/I-9XyYs2ri/Th5v3nSo/j.h//Z/U/m/fJDMnlV-I/CxLoyzqLdw./~1"
},
{
"type": "encryption",
"pointer": "/iiI9XD1V/j+GCo8+EJ-X/a.ZN/ScRq"
},
{
"type": "encryption",
"pointer": "/l,g/mvhB/Mc7cVX6v/rE-l5Y3q."
},
{
"type": "encryption",
"pointer": "/~1/JIfzOmu/~1/~0"
},
{
"type": "encryption",
"pointer": "/~0"
}
]
},
"last_updated": "2021-12-05T01:27:52.318Z",
"encodingVersion": 1,
"job": {
"_id": "6a41f1ecca6ba05ad3e6903a",
"task": "3a1f",
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"ancestors": [
"22898ad489432e8179b8674a",
"928ca0eed89ec2e9fc4f215d",
"b25fc0d97dbe280077d84861",
"8bc9c0799a11609011b1792f",
"b203552236380eb6c6cccd1b"
]
},
"groups": [
{
"_id": "b82536cea0fa1d7d77b15349",
"provenance": "sed eiusmod dolor irure",
"name": "velit est irure dolor voluptate",
"description": "ad ullamco eiusmod",
"memberOf": [
{
"groupId": "4f97f9581c7243abd8a9337b",
"aaaManaged": true
},
{
"groupId": "ef44c1f8d8ab12fb3c715c4f",
"aaaManaged": true
}
],
"assignedRoles": [
{
"roleId": "commodo"
},
{
"roleId": "commodo sit"
}
],
"inactive": false,
"_meta": {
"created": "1960-01-20T19:45:34.457Z",
"updated": "2002-02-24T23:28:18.189Z",
"migrationVersion": 51606970
}
},
"b991ce64e59693b586a9ee80"
],
"type": "automatic",
"metrics": {
"start_time": "magna dolore ipsum Duis est",
"end_time": -904134.5785014629,
"server_id": "fugiat",
"finish_state": "success",
"run_time": 70826699.52214757,
"retrying": null,
"user": "Pronghorn",
"owner": {
"_id": "f858051b20a32caec35069fa",
"provenance": "Ut consectetur laborum ipsum",
"username": "labore sit officia velit sed",
"firstname": "Ut",
"memberOf": [
{
"groupId": "2363844e2ae3beed65b3e647",
"aaaManaged": false
}
],
"assignedRoles": [
{
"roleId": "cillum"
},
{
"roleId": "ad exercitation sint"
},
{
"roleId": "voluptate non eiusmod sint"
},
{
"roleId": "esse incididunt"
}
],
"inactive": false,
"lastLogin": "1972-01-19T19:07:36.071Z",
"_meta": {
"created": "1951-08-08T09:43:41.928Z",
"updated": "2003-03-28T11:16:36.0Z",
"migrationVersion": -47735070
},
"email": "elit Ut"
}
}
}
}