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": "24e12c2dd097b8aa75384cf4"
}
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": "cefaEcbc-ae0c-60af-2437-bFa75b7D5dFe",
"location": "Adapter",
"view": null,
"status": "canceled",
"app": "aute",
"name": "voluptate ullamco aute velit",
"variables": {
"decorators": [
{
"type": "encryption",
"pointer": "/~1/~1/cI00Y7"
},
{
"type": "encryption",
"pointer": "/~1/~1/vr0/KWDHCH6IQ/~0/~1"
},
{
"type": "encryption",
"pointer": "/~1"
}
]
},
"last_updated": "1995-09-16T05:09:37.352Z",
"encodingVersion": 1,
"job": {
"_id": "733733348369946407620f74",
"task": "b4f",
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"ancestors": [
"93ca27247fde4927f80673b9",
"6af7689f9a81623842960997",
"72764c8defecc750bd8e2bf5"
]
},
"incomingRefs": [],
"groups": [
"f693b22d69ccec88c511527f",
{
"_id": "f689df314a468ad4a721cdfd",
"provenance": "eiusmod laborum sunt",
"name": "fugiat Excepteur",
"description": "elit labore",
"memberOf": [
{
"groupId": "e9254f7ece0120136db4f64a",
"aaaManaged": false
},
{
"groupId": "12b542919956015d4e09b0c1",
"aaaManaged": false
},
{
"groupId": "f503106e238ea7e0da30a1a5",
"aaaManaged": true
}
],
"assignedRoles": [
{
"roleId": "ad qui sed aliqua"
},
{
"roleId": "aliquip dolore"
}
],
"inactive": false,
"_meta": {
"created": "1984-11-26T17:57:39.823Z",
"updated": "2018-08-18T18:04:16.072Z",
"migrationVersion": -9266713
}
},
"1e8c7bd7ed365bb58f7fa984",
"9fa4dd2c1037f3830e3e3e7e",
"40300a895c8cd4b1e833c96e"
],
"type": "automatic",
"metrics": {
"start_time": "officia quis id nostrud ut",
"end_time": -18807058.65603423,
"server_id": "Duis enim commodo amet",
"finish_state": "success",
"run_time": -31515559.317358524,
"retrying": false,
"user": "76dafeabe7428974faa17bda",
"owner": "c7bb29fe9fdcdc3fed24cbe0"
}
}
}