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": "a3290ff3da3184836c6fbbfe"
}
Return
DetailsExampleSchema
Name |
Type |
Description |
result |
object |
The result of the assign operation. |
Copied to Clipboard
{
"message": "Successfully created the requested item",
"data": {
"_id": "2f8BfcE7-cC9d-B7E6-50CE-f47c294EF5c9",
"location": "Broker",
"view": "occaecat sit culpa dolore",
"status": "complete",
"app": "ex",
"name": "voluptate tempor",
"variables": {
"decorators": [
{
"type": "encryption",
"pointer": "/~1/BYpx/WCzi"
},
{
"type": "encryption",
"pointer": "/dSvU7-A/QI-9f4HcEmT/~1/tx/bZfEL/~1/D0wX/~1/~0/~1"
},
{
"type": "encryption",
"pointer": "/y6cOJdL/~1/~1/kE1/dnGMqXuWzq/~0/~0/WIjRSYU4/SNt1d/OB/qS,A"
}
]
},
"last_updated": "1985-09-10T15:57:24.547Z",
"encodingVersion": 1,
"job": {
"_id": "26db4fed769351d1cb32a00a",
"task": "3a1f",
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"ancestors": [
"09b63a8d0736919ba96c32d7",
"fb626cf6c453992a22c82a94",
"e114959fa03a5ff95530ea93"
]
},
"groups": [
"8b951e089eac2dc22f95ec6c",
{
"_id": "61847a01bdd6a2580cb885ee",
"provenance": "et ex sunt irure",
"name": "dolore labore Excepteur laboris",
"description": "qui quis",
"memberOf": [
{
"groupId": "31484b9dee9204cfa143443e",
"aaaManaged": false
},
{
"groupId": "ba093174eef8c96a4f6af325",
"aaaManaged": false
},
{
"groupId": "ad157e0751315fb01c153c7c",
"aaaManaged": true
}
],
"assignedRoles": [
{
"roleId": "consequat eu"
},
{
"roleId": "laborum irure sed sit ut"
}
],
"inactive": true,
"_meta": {
"created": "1949-04-12T16:59:27.518Z",
"updated": "1998-07-24T21:22:01.417Z",
"migrationVersion": -18165112
}
},
{
"_id": "0a1fbd370718138ae1e3cd7c",
"provenance": "irure",
"name": "dolore pariatur veniam dolor proident",
"description": "officia et occaecat",
"memberOf": [
{
"groupId": "d0a4d574dfa384aa609cda9c",
"aaaManaged": true
},
{
"groupId": "2efb0b181cd4849ea09b7974",
"aaaManaged": true
},
{
"groupId": "f11c22d1120a118a56bd9c50",
"aaaManaged": false
},
{
"groupId": "0a4a954810c86b8697f92ee8",
"aaaManaged": false
}
],
"assignedRoles": [
{
"roleId": "ut"
}
],
"inactive": true,
"_meta": {
"created": "1989-05-11T06:26:39.961Z",
"updated": "1983-08-10T12:04:37.85Z",
"migrationVersion": 27395108
}
}
],
"type": "operation",
"metrics": {
"start_time": "deserunt nostrud cupidatat nulla",
"end_time": 53615646.41378474,
"server_id": "id exercitation enim ea ad",
"finish_state": "success",
"run_time": 75036919.66480029,
"retrying": null,
"user": "4dc8bc3c08ff4a8ede0c1868",
"owner": "c993f7a07603c1f0bc47f572"
}
}
}