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": "a17fbf9a94ef65f1c762ad6e"
}
Return
DetailsExampleSchema
Name |
Type |
Description |
result |
object |
The result of the assign operation. |
Copied to Clipboard
{
"message": "Successfully retrieved search results",
"data": {
"_id": "A08b6E9e-55Db-c60b-e292-3beE40FBe141",
"location": "Broker",
"view": null,
"status": "running",
"app": "enim elit cupidatat dolor officia",
"name": "Duis",
"variables": {
"decorators": [
{
"type": "encryption",
"pointer": "/~0/QDpR/0/~1/~0/nomDC5L/~0/T8QilamrTfp/W2z1P52i/"
},
{
"type": "encryption",
"pointer": "/TjJd94cUK/dD/o-wAuY/~1/L8/X/~0/TPN7vRes/c3Mh8.X6/tD/~1/~1"
},
{
"type": "encryption",
"pointer": "/~1/pT/vWIn6x/rsFvyQ5n/~0/~1/~1"
},
{
"type": "encryption",
"pointer": "/QE-JeApR/~0/ilGFuzAjzwo/~1/m/YxVPtHLg4ue/m/m-kLR4/ejQR1FztiV3/~1/vG5"
}
]
},
"last_updated": "2008-01-09T12:59:52.624Z",
"encodingVersion": 1,
"job": {
"_id": "59334d27abffcdca8e2a93cc",
"task": "b4f",
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"ancestors": [
"79988b6357396548b203ef3a",
"e6fc268628a00fca9d7f5bd7",
"e124e3d7ac93bf719eda2f00",
"61b820d1cc1af1994ea25574",
"77085f4a539609892b9d2388"
]
},
"groups": [
"cb820ca7642201db0d72f61a"
],
"type": "automatic",
"metrics": {
"start_time": "consequat tempor proident laboris",
"end_time": 5210507.348176435,
"server_id": "in nisi",
"finish_state": "success",
"run_time": -36552933.68307544,
"retrying": false,
"user": "",
"owner": {
"_id": "2f125464d0b5c3f8080baba3",
"provenance": "aliquip dolor dolor Ut do",
"username": "occaecat pariatur sint eiusmod aute",
"firstname": "non dolor dolore quis reprehenderit",
"memberOf": [
{
"groupId": "3254f04e9bd6c69005f7a17a",
"aaaManaged": true
},
{
"groupId": "2263e97798d42b89e6eaa296",
"aaaManaged": true
},
{
"groupId": "07e46dec34924bbc12cd7545",
"aaaManaged": true
},
{
"groupId": "32527625c83197ed6fa1b810",
"aaaManaged": true
}
],
"assignedRoles": [
{
"roleId": "cupidatat"
},
{
"roleId": "et nostrud non Duis tempor"
},
{
"roleId": "ipsum Excepteur eiusmod ad"
}
],
"inactive": true,
"lastLogin": "1985-10-20T21:59:00.75Z",
"_meta": {
"created": "2005-08-03T00:51:08.14Z",
"updated": "2018-04-04T21:04:57.946Z",
"migrationVersion": -9934435
},
"email": "est dolore"
}
}
}
}