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": "c2b87e35acdd9185efb911d9"
}
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": "cBfdaCF0-6E6E-Af94-f983-29fADcaCaFd6",
"location": "Adapter",
"view": null,
"status": "running",
"app": "amet Ut dolore dolore minim",
"name": "aute Ut laboris",
"variables": {
"decorators": [
{
"type": "encryption",
"pointer": "/~0/~0/R+RoAPC6/wY0l0/~0/~1/~1/qy/5l3NN2BB/tZI/h4QKR/~1"
},
{
"type": "encryption",
"pointer": "/OTn27c"
}
]
},
"last_updated": "1998-08-08T14:11:04.611Z",
"encodingVersion": 1,
"job": {
"_id": "6bd3122694b2fbd56868ff1e",
"task": "3a1f",
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"ancestors": [
"fc6b885a8fc47e543ab30a3d",
"f0e3df3cef2600db64127698",
"ed4b1a34ef4871e7cd4675f6",
"4c341ff51daa3b3cc03a7d73"
]
},
"incomingRefs": [],
"groups": [
"28e1d4c8fe4806e0da3c96a0",
{
"_id": "d485c73f1a80cc454806f7d6",
"provenance": "dolore Lorem quis",
"name": "aute qui dolore",
"description": "sunt dolore proident sed",
"memberOf": [
{
"groupId": "92b4f315ce76c14e9bcea4fc",
"aaaManaged": false
},
{
"groupId": "a2bd354768b95f8cdf47f3dc",
"aaaManaged": true
},
{
"groupId": "f7b8d0a60fde96e70e897401",
"aaaManaged": false
},
{
"groupId": "3387e6e2361fb41db06f1a7a",
"aaaManaged": false
},
{
"groupId": "a7e37559a7540856f7a1ad71",
"aaaManaged": true
}
],
"assignedRoles": [
{
"roleId": "dolore Duis fugiat"
},
{
"roleId": "incididunt"
}
],
"inactive": false,
"_meta": {
"created": "2011-02-02T20:04:40.455Z",
"updated": "1964-05-07T15:36:20.097Z",
"migrationVersion": -18311989
}
},
{
"_id": "9bdeef8c55a36a28f624836b",
"provenance": "minim ut labore mollit deserunt",
"name": "eu ex",
"description": "et commodo culpa Lorem aliqua",
"memberOf": [
{
"groupId": "6c36e59e00a51056db6002c2",
"aaaManaged": false
}
],
"assignedRoles": [
{
"roleId": "Excepteur sit"
}
],
"inactive": true,
"_meta": {
"created": "1991-05-02T01:55:46.281Z",
"updated": "1946-11-08T11:45:13.551Z",
"migrationVersion": -73104508
}
},
"48459c59cdce43f3e1401667"
],
"type": "automatic",
"metrics": {
"start_time": "irure ea incididunt quis et",
"end_time": -22636890.90159616,
"server_id": "magna tempor dolor",
"finish_state": "scheduled",
"run_time": -65466673.24427604,
"retrying": null,
"user": "f1e8e0eabe45fe9156418480",
"owner": "f7e228bd765e169361c5d7c0"
}
}
}