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": "8bd9039ec201fed6b5c984fd"
}
Return
DetailsExampleSchema
Name |
Type |
Description |
result |
object |
The result of the assign operation. |
Copied to Clipboard
{
"message": "Successfully retrieved search results",
"data": {
"_id": "322BEA1E-2C52-0DE5-cFCa-914bcff8626A",
"location": "Application",
"view": null,
"status": "incomplete",
"app": "velit culpa",
"name": "id adipisicing officia sunt",
"variables": {
"decorators": [
{
"type": "encryption",
"pointer": "/~0/h3RI-G/XCQGI/~1/~1"
},
{
"type": "encryption",
"pointer": "/~1/qz-F/~0"
},
{
"type": "encryption",
"pointer": "/~0/~1/h/XUBX.rMrfw4/r"
}
]
},
"last_updated": "1976-08-02T12:39:38.577Z",
"encodingVersion": 1,
"job": {
"_id": "be423ae44dff16168236611d",
"task": "3a1f",
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"ancestors": null
},
"incomingRefs": [],
"groups": [
"ec35f3eb18d7753f90fdcbdb",
"8b0883a1ca2221507dd04b5b",
{
"_id": "82c43f180abff8722052a2ae",
"provenance": "exercitation nisi esse Duis",
"name": "cupidatat non Excepteur exercitation dolore",
"description": "in aliquip enim",
"memberOf": [
{
"groupId": "eedb620507c2bed6da6bde60",
"aaaManaged": false
}
],
"assignedRoles": [
{
"roleId": "nisi qui ex veniam deserunt"
},
{
"roleId": "dolor aliquip ut"
}
],
"inactive": true,
"_meta": {
"created": "1983-11-22T20:46:15.27Z",
"updated": "2023-05-12T20:56:38.344Z",
"migrationVersion": -52476377
}
}
],
"type": "automatic",
"metrics": {
"start_time": "aliquip ullamco dolore incididunt cupidatat",
"end_time": -55696433.34104581,
"server_id": "commodo voluptate",
"finish_state": "success",
"run_time": -63382256.07857884,
"retrying": false,
"user": "Pronghorn",
"owner": {
"_id": "b34f13b22353483202412a6f",
"provenance": "Ut ut officia occaecat mollit",
"username": "nisi enim aliquip",
"firstname": "in",
"memberOf": [
{
"groupId": "1d3e4f7b00d5f01afb3cb0e2",
"aaaManaged": true
},
{
"groupId": "fb365071d8e272e633cd92c3",
"aaaManaged": false
},
{
"groupId": "1c1d58addc1966057f825adf",
"aaaManaged": false
},
{
"groupId": "b494d58cf377232260fd1b4a",
"aaaManaged": true
},
{
"groupId": "1e81df07803c8949e049cdd0",
"aaaManaged": true
}
],
"assignedRoles": [
{
"roleId": "aliquip ullamco id nisi"
},
{
"roleId": "labore sit sunt in incididunt"
},
{
"roleId": "tempor mollit do Ut incididunt"
}
],
"inactive": false,
"lastLogin": "1975-06-26T11:49:56.527Z",
"_meta": {
"created": "2022-05-28T09:27:09.133Z",
"updated": "1949-11-01T15:29:31.95Z",
"migrationVersion": -85662492
},
"email": "Ut est ut amet do"
}
}
}
}