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": "e60c60c932ff82a830c49403"
}
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": "3044bdb4-556b-9CbD-D51e-77fAB4F43cDc",
"location": "Adapter",
"view": null,
"status": "canceled",
"app": "ipsum in",
"name": "sed",
"variables": {
"decorators": [
{
"type": "encryption",
"pointer": "/qHZRLE02U./WPjRa/siJcscIr/~1/~1/kwY7KhT/~1/~1/~1"
},
{
"type": "encryption",
"pointer": "/~1/~1/~1/C/d/pyXAwlqW/YSV/~1/~1/~1"
},
{
"type": "encryption",
"pointer": "/~0/KBOy95wt/rpMXr/Ez27ah6/bX1lxo/Nz.YHjM32h"
}
]
},
"last_updated": "1985-12-01T11:46:21.385Z",
"encodingVersion": 1,
"job": {
"_id": "b5b34c9f23efc7d92bd72c2b",
"task": "e28f",
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"ancestors": null
},
"incomingRefs": [],
"groups": [
"32425789de4e2e1db5eb17cb",
"873ffa8cfce8f7010b909ba2",
"ec47a7d315d5f32c76c39de4"
],
"type": "operation",
"metrics": {
"start_time": "eiusmod mollit quis dolor",
"end_time": 15420836.63620235,
"server_id": "ut est amet et Ut",
"finish_state": "success",
"run_time": 91220232.02225974,
"retrying": true,
"user": "5c3f8f23aebd75f30c673891",
"owner": {
"_id": "40659c6631c1c3f4887044b4",
"provenance": "ut deserunt",
"username": "Excepteur esse",
"firstname": "ut esse exercitation nulla",
"memberOf": [
{
"groupId": "e66e598810d82100c7416a58",
"aaaManaged": true
}
],
"assignedRoles": [
{
"roleId": "enim occaecat labore"
}
],
"inactive": false,
"lastLogin": "2018-08-20T00:44:03.302Z",
"_meta": {
"created": "1976-12-24T13:02:09.534Z",
"updated": "1965-03-27T07:45:37.041Z",
"migrationVersion": -75826859
},
"email": "sunt magna fugiat ipsum dolor"
}
}
}
}