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": "89f3116905e178d2e2fdefa8"
}
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": "A3b24daC-6EBf-eA02-Bfaf-66D3697BBE62",
"location": "Application",
"view": null,
"status": "failure",
"app": "ea sit mollit sed minim",
"name": "veniam",
"variables": {
"decorators": [
{
"type": "encryption",
"pointer": "/~1"
}
]
},
"last_updated": "1978-11-16T01:05:38.204Z",
"encodingVersion": 1,
"job": {
"_id": "be11bdd42fb538c9405fe98e",
"task": "b4f",
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"ancestors": null
},
"incomingRefs": [],
"groups": [
"b66f25c44d669329dbe2afe9",
{
"_id": "e9a59f2d592884c877ca731c",
"provenance": "in Lorem",
"name": "voluptate laboris labore ullamco fugiat",
"description": "exercitation ex Duis sed ullamco",
"memberOf": [
{
"groupId": "8c3d5e644e4d67892ef8c6b4",
"aaaManaged": true
},
{
"groupId": "9b12918a987db8da276b4e14",
"aaaManaged": false
},
{
"groupId": "561bc1a44785667e98ab53ed",
"aaaManaged": true
}
],
"assignedRoles": [
{
"roleId": "reprehenderit dolor"
}
],
"inactive": true,
"_meta": {
"created": "1987-11-08T21:22:58.132Z",
"updated": "2025-01-26T06:10:15.682Z",
"migrationVersion": -60410684
}
},
"949dc3e083469cdfe5b21cbe"
],
"type": "manual",
"metrics": {
"start_time": "laboris minim",
"claim_time": "1998-02-05T07:59:04.189Z",
"end_time": -62267575.39166976,
"server_id": "do dolor labore",
"finish_state": "success",
"run_time": 92942236.35782295,
"user": "4d565fde6dd3bae7fbf3d72f",
"owner": "71f1c03d54b27f13973399a5"
}
}
}