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": "9aa56a870876ad46c7f607aa" }
{ "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": "3bBea136-f93d-adEe-fAb6-fE073cfE6DdB", "location": "Broker", "view": null, "status": "running", "app": "occaecat", "name": "ex", "variables": { "decorators": [ { "type": "encryption", "pointer": "/~0/X/~1" }, { "type": "encryption", "pointer": "/~1/~0" } ] }, "last_updated": "2003-10-25T16:02:57.652Z", "encodingVersion": 1, "job": { "_id": "0c2acc1fb73f41dae0cc3b8b", "task": "e28f", "name": "myCoolDocumentName", "description": "Some helpful information about the document", "ancestors": null }, "incomingRefs": [], "groups": [ { "_id": "ff722999c69da954c0facbd7", "provenance": "sint laborum deserunt non velit", "name": "sed labore officia in aute", "description": "tempor Ut et esse", "memberOf": [ { "groupId": "2991828c4d11fd93e69f1425", "aaaManaged": true } ], "assignedRoles": [ { "roleId": "Ut" }, { "roleId": "officia" }, { "roleId": "est consectetur cillum" } ], "inactive": false, "_meta": { "created": "2023-02-08T04:02:39.405Z", "updated": "2010-06-30T17:13:31.235Z", "migrationVersion": 14841209 } }, "42384f03033f2f0e814a3b6c", "2c5af13817236844cc6594b6", { "_id": "4e9d1bad7ce45fd4049bdc95", "provenance": "sint", "name": "mollit", "description": "labore qui", "memberOf": [ { "groupId": "c9d90288267ccb72aa55a1c8", "aaaManaged": false } ], "assignedRoles": [ { "roleId": "Ut officia occaecat nulla" }, { "roleId": "irure ipsum sint" } ], "inactive": true, "_meta": { "created": "2019-04-30T14:33:36.252Z", "updated": "1993-05-07T21:25:51.493Z", "migrationVersion": 56953108 } }, { "_id": "933b526992314cb9184dad76", "provenance": "ipsum", "name": "sed ad ea", "description": "ad exercitation", "memberOf": [ { "groupId": "fd83a2f6f5b1e22d42537dbd", "aaaManaged": false }, { "groupId": "d7c1ffce4c689758c49c7be8", "aaaManaged": true }, { "groupId": "e555b4ccdc1d754fb7fa99db", "aaaManaged": false }, { "groupId": "2ad30622dad6dd753ad21633", "aaaManaged": false }, { "groupId": "f0c7c8243cf29a13d7992d28", "aaaManaged": false } ], "assignedRoles": [ { "roleId": "sed commodo sunt" }, { "roleId": "fugiat sed" }, { "roleId": "Lorem ullamco veniam" }, { "roleId": "voluptate eiusmod" }, { "roleId": "ipsum ut" } ], "inactive": true, "_meta": { "created": "2001-07-06T07:39:00.27Z", "updated": "2002-02-27T07:48:52.386Z", "migrationVersion": -57488230 } } ], "type": "operation", "metrics": { "start_time": "deserunt ipsum ut ut tempor", "end_time": 50419031.23840782, "server_id": "id minim tempor deserunt", "finish_state": "success", "run_time": 59090721.97760311, "retrying": true, "user": { "_id": "20571ccd091840accd5c8956", "provenance": "commodo ea dolore", "username": "proident reprehenderit elit consectetur", "firstname": "ut", "memberOf": [ { "groupId": "4eb1c655986c4e37a725d1e6", "aaaManaged": true }, { "groupId": "384bc123e997d845bcfdf46e", "aaaManaged": true }, { "groupId": "a9c1619086b8d4269e6ed5ea", "aaaManaged": false }, { "groupId": "dbdf69dd4198f65e19625e9f", "aaaManaged": false } ], "assignedRoles": [ { "roleId": "fugiat commodo irure tempor aliqua" }, { "roleId": "qui" } ], "inactive": true, "lastLogin": "2007-02-26T09:21:05.335Z", "_meta": { "created": "1971-02-24T10:10:19.741Z", "updated": "1958-02-20T04:07:16.015Z", "migrationVersion": -35216270 }, "email": "Lorem deserunt" }, "owner": { "_id": "582f3f33ce6ea9bcf1330d3b", "provenance": "fugiat Duis laboris cillum", "username": "sed adipisicing ut laborum", "firstname": "Ut labore est in sunt", "memberOf": [ { "groupId": "fded67abd0ce5334f468c29e", "aaaManaged": true }, { "groupId": "54ccd306924adf78e63dd77a", "aaaManaged": true }, { "groupId": "e702a3cd12f69b27cb43734c", "aaaManaged": true }, { "groupId": "c87ceef13fcf49b5f3708d2c", "aaaManaged": true }, { "groupId": "cd79e0de7c14e591a71fad7b", "aaaManaged": false } ], "assignedRoles": [ { "roleId": "do est commodo" }, { "roleId": "cupidatat minim sed" }, { "roleId": "nisi" }, { "roleId": "ipsum" }, { "roleId": "in enim" } ], "inactive": true, "lastLogin": "1960-10-09T08:08:08.026Z", "_meta": { "created": "1996-11-21T09:37:12.642Z", "updated": "1989-02-11T15:08:24.616Z", "migrationVersion": 79670908 }, "email": "cillum id adipisicing culpa ipsum" } } } }
{ "title": "result", "allOf": [ { "$ref": "common-api#/definitions/success-response" }, { "type": "object", "properties": { "data": { "$ref": "task-api" } } } ] }