Summary
Assign a task to a user
Description
Assign a Task to a user.
Route
POST /operations-manager/tasks/:taskId/assign
Roles
Parameters
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 |
{ "userId": "f79fef319895eba27a839e7b" }
{ "type": "object", "properties": { "userId": { "title": "userId", "$ref": "common#/definitions/ObjectIdLikeString" } }, "required": [ "userId" ], "additionalProperties": false }
Return
Name | Type | Description |
---|---|---|
result | object | The result of the assign operation. |
{ "message": "Successfully created the requested item", "data": { "_id": "5eD8a916-3B09-B115-E80b-5f6FbfB2FbCa", "location": "Application", "view": null, "status": "canceled", "app": "dolore non veniam velit", "name": "incididunt cillum et Ut", "variables": { "decorators": [ { "type": "encryption", "pointer": "/~1/~0/~0/mjErU/~0/~1/~0/~0/~1/Bvl3knJts" }, { "type": "encryption", "pointer": "/~1/V/P0UDkQ/P.1cASJUlp/A/+imQ/~1/hCp/nCglw/U/FdT/HF/~1" }, { "type": "encryption", "pointer": "/nlaSgW/HTkz" }, { "type": "encryption", "pointer": "/~1/~1/~0/nv3/~1/~0/~0/z1KUFZRpU/ityvt/ezaa9mKtF5K/fCQWNnXAs" } ] }, "last_updated": "2017-07-06T19:55:48.169Z", "encodingVersion": 1, "job": { "_id": "4a57a4b9b83935eb029b799e", "task": "e28f", "name": "myCoolDocumentName", "description": "Some helpful information about the document", "ancestors": [ "6cc257a68f3432193012d3e5", "44023010fe15091ce6bf2274", "749f6836606f59b9cdf3ddf7" ] }, "incomingRefs": [], "groups": [ { "_id": "0a50e960580b26ad68ddd43d", "provenance": "consectetur sed est anim veniam", "name": "aute Ut aliqua in", "description": "dolore", "memberOf": [ { "groupId": "23e6dce074c498e22c66a99d", "aaaManaged": false }, { "groupId": "613d94dc0783243fe3a49eb0", "aaaManaged": false }, { "groupId": "29a06157a31320a303809473", "aaaManaged": true } ], "assignedRoles": [ { "roleId": "do culpa magna" }, { "roleId": "exercitation" }, { "roleId": "minim eiusmod laborum Lorem" }, { "roleId": "deserunt" }, { "roleId": "ut laboris dolore" } ], "inactive": false, "_meta": { "created": "1961-07-21T21:54:13.297Z", "updated": "1952-10-13T17:29:06.125Z", "migrationVersion": -84148718 } }, { "_id": "7b2683c9be88f39c27045616", "provenance": "in sunt nisi mollit", "name": "dolore ea elit", "description": "mollit enim qui", "memberOf": [ { "groupId": "e30ede51fedd70d7eb061e83", "aaaManaged": false }, { "groupId": "ad5c83ca61e3cded7dd3c9e5", "aaaManaged": false }, { "groupId": "1c52f25a7cc749ca425bc74e", "aaaManaged": true }, { "groupId": "ff041580de207dd7c7f8b06f", "aaaManaged": true }, { "groupId": "3efa594a9eb88c9e17e5bb62", "aaaManaged": false } ], "assignedRoles": [ { "roleId": "qui enim veniam eiusmod" }, { "roleId": "nostrud sunt ut" } ], "inactive": false, "_meta": { "created": "2022-09-29T07:13:59.426Z", "updated": "1950-12-13T11:11:06.928Z", "migrationVersion": 60754762 } }, "901fba24342ff22a4846390d", { "_id": "47951699447dbba858f11dfc", "provenance": "do sed ut anim esse", "name": "ea", "description": "culpa", "memberOf": [ { "groupId": "26622cb04433daf21cdd6c60", "aaaManaged": true }, { "groupId": "abff92e85c57ca93d9efa5e4", "aaaManaged": true }, { "groupId": "964b9d0476fdccfc8c751639", "aaaManaged": false }, { "groupId": "6fa7605ab22e51ade78d9f05", "aaaManaged": false } ], "assignedRoles": [ { "roleId": "ad magna dolore sit" }, { "roleId": "enim tempor non nostrud nisi" }, { "roleId": "velit incididunt" }, { "roleId": "culpa dolore et reprehenderit dolore" } ], "inactive": false, "_meta": { "created": "1974-02-20T16:00:15.935Z", "updated": "2000-05-20T10:45:26.2Z", "migrationVersion": -17345720 } } ], "type": "manual", "metrics": { "start_time": "aliqua ipsum", "claim_time": "1978-07-13T13:05:40.457Z", "end_time": 40639522.23680398, "server_id": "incididunt cupidatat cillum", "finish_state": "error", "run_time": -22694674.902329132, "user": { "_id": "ef8735dbb80ac49fe1ad44ff", "provenance": "dolore ipsum minim", "username": "culpa", "firstname": "dolor aute cupidatat", "memberOf": [ { "groupId": "4f52cf4ab3fb81b9d45496c8", "aaaManaged": true }, { "groupId": "52f4e461e913d8736bb79d4d", "aaaManaged": false }, { "groupId": "f7e3bf503344af90480d260a", "aaaManaged": true }, { "groupId": "ee35e26fd33efa08690e807b", "aaaManaged": true } ], "assignedRoles": [ { "roleId": "consequat ea nostrud" }, { "roleId": "pariatur et" }, { "roleId": "sunt irure reprehenderit labore" }, { "roleId": "enim sunt" } ], "inactive": false, "lastLogin": "1961-10-20T09:03:29.905Z", "_meta": { "created": "1983-06-25T09:17:13.051Z", "updated": "2019-02-19T05:56:50.541Z", "migrationVersion": -81764211 }, "email": "Ut adipisicing voluptate dolor" }, "owner": "Pronghorn" } } }
{ "title": "result", "allOf": [ { "$ref": "common-api#/definitions/success-response" }, { "type": "object", "properties": { "data": { "$ref": "task-api" } } } ] }