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": "16cf5de520f6353f40063fb1"
}
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": "6dccCE7a-1892-A76E-242A-2B978EcaDa8c",
"location": "Application",
"view": null,
"status": "failure",
"app": "consequat fugiat sit",
"name": "id labore aute pariatur",
"variables": {
"decorators": [
{
"type": "encryption",
"pointer": "/~0/~0/W3mYgKpF/~0/DJEW/~0/PZc"
}
]
},
"last_updated": "1981-01-18T19:38:24.703Z",
"encodingVersion": 1,
"job": {
"_id": "6d38065968b755d46bfafc5e",
"task": "e28f",
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"ancestors": null
},
"groups": [
"933854afa0a93c1a2adc11e9",
{
"_id": "7a5cf51042fef0e8e86a767f",
"provenance": "ex enim",
"name": "ut est Lorem",
"description": "aliqua",
"memberOf": [
{
"groupId": "4e4dd725c85b2526cb020e97",
"aaaManaged": false
},
{
"groupId": "da431a8faaaa4f25306c11e7",
"aaaManaged": true
},
{
"groupId": "2871434a6552f04d0accfc75",
"aaaManaged": true
}
],
"assignedRoles": [
{
"roleId": "cupidatat"
},
{
"roleId": "elit aliqua"
}
],
"inactive": true,
"_meta": {
"created": "2005-04-04T10:18:40.664Z",
"updated": "1992-04-08T23:55:19.103Z",
"migrationVersion": 91089293
}
},
{
"_id": "553ecc74c59fc68ca8229eea",
"provenance": "laboris",
"name": "sint",
"description": "anim quis dolor do",
"memberOf": [
{
"groupId": "6e9cb3f73679da29c178cb2a",
"aaaManaged": false
},
{
"groupId": "b6f361c6822887a6abc689de",
"aaaManaged": true
}
],
"assignedRoles": [
{
"roleId": "cillum non ut"
},
{
"roleId": "Duis sunt ut"
},
{
"roleId": "deserunt cupidatat anim"
},
{
"roleId": "non amet occaecat officia id"
},
{
"roleId": "ea commodo velit ut cupidatat"
}
],
"inactive": false,
"_meta": {
"created": "1997-06-15T08:53:25.674Z",
"updated": "2004-08-08T15:37:12.334Z",
"migrationVersion": -20332802
}
},
"329ac06a100f55a50a39a03a",
"9022b0a39fa27aa704b4d9cc"
],
"type": "manual",
"metrics": {
"start_time": "sed reprehenderit minim aliqua",
"claim_time": "1964-09-28T04:39:35.647Z",
"end_time": -3708274.89838849,
"server_id": "dolor",
"finish_state": "success",
"run_time": 27213977.103758276,
"user": "",
"owner": "fc4cf348c85682174b2eee0b"
}
}
}