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": "94a3f628b3bbf6e08154e860"
}
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": "5cC02F44-1EbF-F7B5-5AeA-D55AD97D3Cb2",
"location": "Broker",
"view": null,
"status": "running",
"app": "qui in",
"name": "commodo",
"variables": {
"decorators": [
{
"type": "encryption",
"pointer": "/rZa7-3LoLm6/y1Mcg6UxiB/~1"
}
]
},
"last_updated": "2009-04-28T04:18:39.748Z",
"encodingVersion": 1,
"job": {
"_id": "12fd1f9cbb810f71c63a9676",
"task": "e28f",
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"ancestors": null
},
"groups": [
{
"_id": "85f7c634d8dc104d79dc6faa",
"provenance": "deserunt amet adipisicing",
"name": "nostrud magna irure sed amet",
"description": "aute pariatur culpa",
"memberOf": [
{
"groupId": "2c1932e031866264d1b5c1d7",
"aaaManaged": false
},
{
"groupId": "ea5896d11e23f5bc94ad7484",
"aaaManaged": true
},
{
"groupId": "2ace9ce0ceda5fa621bace48",
"aaaManaged": true
}
],
"assignedRoles": [
{
"roleId": "aliquip officia"
},
{
"roleId": "nulla adipisicing anim"
},
{
"roleId": "ullamco"
},
{
"roleId": "irure nulla"
},
{
"roleId": "sunt magna commodo adipisicing nulla"
}
],
"inactive": true,
"_meta": {
"created": "1992-10-24T05:51:28.731Z",
"updated": "1956-09-21T05:20:19.377Z",
"migrationVersion": 26117243
}
},
"7ea410ddbecda212994144cb"
],
"type": "operation",
"metrics": {
"start_time": "incididunt Excepteur",
"end_time": -64740898.019261554,
"server_id": "id exercitation",
"finish_state": "success",
"run_time": -15778903.746460587,
"retrying": true,
"user": {
"_id": "b57aa653d06d8bb30292c62e",
"provenance": "ad Ut ullamco dolor do",
"username": "qui aute sunt proident pariatur",
"firstname": "quis nulla esse in irure",
"memberOf": [
{
"groupId": "c705827b4976f26addf57dd8",
"aaaManaged": false
},
{
"groupId": "af151012b7f0db9ec6d27ac3",
"aaaManaged": true
},
{
"groupId": "c90d425cd19e78fd7333533e",
"aaaManaged": true
},
{
"groupId": "41385bf7bfde85c53c50b42a",
"aaaManaged": false
}
],
"assignedRoles": [
{
"roleId": "sit"
}
],
"inactive": false,
"lastLogin": "1947-10-09T16:35:21.419Z",
"_meta": {
"created": "1951-02-10T19:44:15.509Z",
"updated": "2008-03-19T12:51:28.481Z",
"migrationVersion": 22345831
},
"email": "velit"
},
"owner": "44ed975bb05cd0495e0ea497"
}
}
}