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": "5d424c7121089d127046a8c5"
}
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": "6CaaCb2f-9fD9-397F-79bf-1cBDf34EF8A0",
"location": "Application",
"view": "exercitation",
"status": "failure",
"app": "amet Excepteur cupidatat",
"name": "dolore aliquip laborum nostrud voluptate",
"variables": {
"decorators": [
{
"type": "encryption",
"pointer": "/GuLXFf/~1"
},
{
"type": "encryption",
"pointer": "/MmP7DU/~1/~1/djw5jX/~0/~0/sfp5/~1/~0/pPH/~0"
},
{
"type": "encryption",
"pointer": "/Kc8xPyV34/GwkAQ8hk/~1/AS/KK/~1"
},
{
"type": "encryption",
"pointer": "/~0/I/~1"
}
]
},
"last_updated": "2010-06-19T00:21:20.854Z",
"encodingVersion": 1,
"job": {
"_id": "bbca6b98491fa8ad24413a63",
"task": "3a1f",
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"ancestors": null
},
"groups": [
"cd51a052e2c1321da3bb5985"
],
"type": "manual",
"metrics": {
"start_time": "ad consectetur aute eu enim",
"claim_time": "1978-02-21T18:40:18.517Z",
"end_time": -29562803.98184386,
"server_id": "eiusmod",
"finish_state": "paused",
"run_time": -62594528.03974575,
"user": "acfb88d2b7cc62ca9d8a5d09",
"owner": "Pronghorn"
}
}
}