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": "a335f0cdfba371079408af00"
}
Return
DetailsExampleSchema
Name |
Type |
Description |
result |
object |
The result of the assign operation. |
Copied to Clipboard
{
"message": "Successfully created the requested item",
"data": {
"_id": "79C7FC06-2077-a0Ec-6cBD-1941FEabB19f",
"location": "Broker",
"view": "cillum in ipsum",
"status": "complete",
"app": "commodo sint",
"name": "enim Excepteur cupidatat",
"variables": {
"decorators": [
{
"type": "encryption",
"pointer": "/chFreUbDP/~0/HnEdioDy481/v/m4i.j3Iu//~0/lbsHxv4Roxx/dWk9SLd/~1/~0"
},
{
"type": "encryption",
"pointer": "/~1/a/~0"
},
{
"type": "encryption",
"pointer": "/~1/~0/~0/h9J/~0/~1/~0/tM15v75c/~1/~1/Ef9"
}
]
},
"last_updated": "2024-02-24T10:38:30.177Z",
"encodingVersion": 1,
"job": {
"_id": "dfb05ce429e293f4f38b9cd8",
"task": "e28f",
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"ancestors": [
"443f00090984a609fbb7de1d",
"1a5fa5324142fa92c630bf83",
"5000b3b8ed464cd575bc5110"
]
},
"groups": [
{
"_id": "cf2a0062cbc29a59e531351c",
"provenance": "id voluptate reprehenderit consectetur",
"name": "ad sit labore",
"description": "aliquip nostrud exercitation ad",
"memberOf": [
{
"groupId": "c40f893b97f91c20b5786afd",
"aaaManaged": false
},
{
"groupId": "a04402d2d10cb8691e443e24",
"aaaManaged": true
},
{
"groupId": "0df730da8dff67384acd8c51",
"aaaManaged": true
}
],
"assignedRoles": [
{
"roleId": "dolor laborum voluptate elit sunt"
},
{
"roleId": "qui"
},
{
"roleId": "ullamco aute"
}
],
"inactive": false,
"_meta": {
"created": "1998-01-01T09:02:54.255Z",
"updated": "2018-02-16T06:44:00.872Z",
"migrationVersion": -2387160
}
},
"8f872dcb8952ec94a8f2b7f6",
{
"_id": "e7c869fa95695a9ea84c5a45",
"provenance": "Ut",
"name": "incididunt veniam dolore aliqua est",
"description": "in enim sed ut",
"memberOf": [
{
"groupId": "e621c1fa5eb543c5af35c80d",
"aaaManaged": false
},
{
"groupId": "28a3a381ae51755e1b53a8c5",
"aaaManaged": true
},
{
"groupId": "d54452568e2ea11e95d8a31b",
"aaaManaged": true
}
],
"assignedRoles": [
{
"roleId": "elit sit"
}
],
"inactive": false,
"_meta": {
"created": "1997-06-07T04:47:39.64Z",
"updated": "1966-01-13T09:31:32.108Z",
"migrationVersion": -3400192
}
},
"cadca37db25a5a2856e2f328"
],
"type": "operation",
"metrics": {
"start_time": "Lorem",
"end_time": 61858962.19902539,
"server_id": "irure",
"finish_state": "success",
"run_time": -32951624.52404137,
"retrying": null,
"user": "Pronghorn",
"owner": ""
}
}
}