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": "05f4d6252c562d6ec10c2e50"
}
Return
DetailsExampleSchema
Name |
Type |
Description |
result |
object |
The result of the assign operation. |
Copied to Clipboard
{
"message": "Successfully retrieved search results",
"data": {
"_id": "5f5Ff8Ac-D44F-59cC-93cF-eD6a9a8DfcF3",
"location": "Adapter",
"view": null,
"status": "canceled",
"app": "laborum dolore",
"name": "dolore eu",
"variables": {
"decorators": [
{
"type": "encryption",
"pointer": "/xwCp/zd/Ct/ikylgSK6y9/~1/~0/~1/~0/WRGX7.86V/~1/ILd,SCsxf/~1"
}
]
},
"last_updated": "2022-03-25T22:20:32.364Z",
"encodingVersion": 1,
"job": {
"_id": "dc543ec132a5dd8ffde6945c",
"task": "b4f",
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"ancestors": [
"af190822431e4f8952734b0b",
"22146a08e39ccd6cbea993eb"
]
},
"incomingRefs": [],
"groups": [
"a8eaf43b2493de88a8e13d2f",
"e5a4772e4ccce8223731c07d",
"c5764f9bb4f4f003046e968d",
"563938187b099ab1e6b6d792",
"aeb682612bddc077a2c996f3"
],
"type": "automatic",
"metrics": {
"start_time": "dolor aliqua id",
"end_time": 23802992.063317552,
"server_id": "ut esse",
"finish_state": "success",
"run_time": 10300543.29521501,
"retrying": false,
"user": "d282956453987eabf42bc61b",
"owner": {
"_id": "309724e7a16cd338174f22bb",
"provenance": "nisi in dolore magna",
"username": "sit nostrud nulla occaecat sint",
"firstname": "nostrud",
"memberOf": [
{
"groupId": "f71b7af2ab61c428aa924d03",
"aaaManaged": true
},
{
"groupId": "574c444a17776005e078e96d",
"aaaManaged": true
},
{
"groupId": "ca569758d1bba762c71913f8",
"aaaManaged": false
},
{
"groupId": "7677ffa7c063e96ec0fe41a8",
"aaaManaged": false
},
{
"groupId": "107b5616b5682219cd003bab",
"aaaManaged": false
}
],
"assignedRoles": [
{
"roleId": "adipisicing exercitation sint deserunt ipsum"
},
{
"roleId": "culpa dolor"
},
{
"roleId": "et id ullamco"
}
],
"inactive": false,
"lastLogin": "1955-12-03T12:55:08.987Z",
"_meta": {
"created": "2013-12-01T04:07:03.901Z",
"updated": "1984-10-24T14:22:53.804Z",
"migrationVersion": -29626870
},
"email": "officia"
}
}
}
}