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": "5a5a30de37dfa9a4e0f7a8d6"
}
Return
DetailsExampleSchema
Name |
Type |
Description |
result |
object |
The result of the assign operation. |
Copied to Clipboard
{
"message": "Successfully created the requested item",
"data": {
"_id": "1eF4D7df-0807-9AbD-DA98-2e4Bd3476524",
"location": "Broker",
"view": null,
"status": "complete",
"app": "ad",
"name": "dolor laboris anim ipsum",
"variables": {
"decorators": [
{
"type": "encryption",
"pointer": "/~1/g.5BJ/mt4pL7q/A/~0/~0/~1"
},
{
"type": "encryption",
"pointer": "/~1/~1"
}
]
},
"last_updated": "1947-01-20T17:59:06.06Z",
"encodingVersion": 1,
"job": {
"_id": "d13bd72f74fb73b477bfd1b9",
"task": "b4f",
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"ancestors": [
"9dcee712c2ace71fa90c5712",
"a4be230355961350e9067760",
"317ddf09ca59802c13824b99"
]
},
"incomingRefs": [],
"groups": [
"a21a288a0ab71c739140a568",
"4b3103bcf84dabe411f236d1"
],
"type": "operation",
"metrics": {
"start_time": "proident sint dolore in",
"end_time": -27061770.730187178,
"server_id": "esse",
"finish_state": "complete",
"run_time": 41644523.03348881,
"retrying": null,
"user": "",
"owner": "ade74f9b2fe0b76d5b91df28"
}
}
}