Summary
Claim a task
Description
Assign a Task to the current user.
Route
POST /operations-manager/tasks/:taskId/claim
Roles
Parameters
Name | Type | Required | Description |
---|---|---|---|
taskId | string | yes | The id of the Task iteration to be claimed. |
null
{ "type": "object", "properties": {}, "required": [], "additionalProperties": false }
Return
Name | Type | Description |
---|---|---|
result | object | The result of the claim operation. |
{ "message": "Successfully imported 3 of 4 documents", "data": { "_id": "e7FBB35F-D97e-9CCC-3dd5-Dd06CCAF4F4f", "location": "Application", "view": null, "status": "running", "app": "sint pariatur sit enim", "name": "officia pariatur non aliqua minim", "variables": { "decorators": [ { "type": "encryption", "pointer": "/p9B/d9/ayN3oLR/~0/yM/au/nQginXI5,3/~0" }, { "type": "encryption", "pointer": "/HxzX2ahNG/yMOfh7f8/~0/~1/tuAAPVtwi/~1/ylFYdGQQ/~1/~0/~0" }, { "type": "encryption", "pointer": "/~1/~0/E8w8.dFqQWR/B/~0/gkv7J" } ] }, "last_updated": "1982-11-20T12:32:17.972Z", "encodingVersion": 1, "job": { "_id": "7e3857d51d11505379cb6bbd", "task": "b4f", "name": "myCoolDocumentName", "description": "Some helpful information about the document", "ancestors": [ "4b2a41977d9779086e5db64c", "711d0e496a3634cbea6ce3ae", "a7a0bee77f50c2d4daca44f4" ] }, "groups": [ { "_id": "da91f59a81f67844f6219ec5", "provenance": "cillum", "name": "Excepteur", "description": "dolor mollit incididunt Excepteur tempor", "memberOf": [ { "groupId": "ace24b716aa42d7ebe3ea4f9", "aaaManaged": true }, { "groupId": "8d9cf106810944661fe671b3", "aaaManaged": false } ], "assignedRoles": [ { "roleId": "Lorem Duis dolore aliqua ipsum" }, { "roleId": "eu et" }, { "roleId": "ipsum" }, { "roleId": "ad et Excepteur dolore" }, { "roleId": "et ipsum" } ], "inactive": false, "_meta": { "created": "2017-07-07T15:47:29.65Z", "updated": "1991-01-02T01:08:36.875Z", "migrationVersion": -93126617 } }, "a973c5568bc9988d0ce4bc95", { "_id": "e66b92398ed21a078dfe7c9b", "provenance": "velit Lorem", "name": "aliqua id do", "description": "adipisicing cupidatat ea pariatur", "memberOf": [ { "groupId": "91aa29c8d03cfb9ef8d71b1f", "aaaManaged": true }, { "groupId": "b189c6ee9f12ed7d5a19f6ca", "aaaManaged": true }, { "groupId": "9d979e4a96a0064879daac75", "aaaManaged": true }, { "groupId": "00b815df1923682e2e285a32", "aaaManaged": false }, { "groupId": "ce7a10284779a83f24f6d342", "aaaManaged": true } ], "assignedRoles": [ { "roleId": "aliqua do nulla non nostrud" }, { "roleId": "cillum exercitation pariatur" }, { "roleId": "fugiat incididunt ea" } ], "inactive": true, "_meta": { "created": "1957-03-14T03:26:15.4Z", "updated": "1953-08-12T23:51:27.702Z", "migrationVersion": 36315975 } }, "ece213df1d0878b6fd43af58", { "_id": "20cb9fd9b700474071620989", "provenance": "dolor", "name": "mollit eu Lorem cupidatat", "description": "anim fugiat", "memberOf": [ { "groupId": "2688a829231c170f7208f609", "aaaManaged": false }, { "groupId": "73410dc9f0b7a8b3b7b966f9", "aaaManaged": false }, { "groupId": "e9fee541ae33a434c17def98", "aaaManaged": false }, { "groupId": "bac9ff88b9f52a2eedd32a03", "aaaManaged": true }, { "groupId": "ca0cc9d726864c42ec252f41", "aaaManaged": false } ], "assignedRoles": [ { "roleId": "Ut qui" }, { "roleId": "labore amet incididunt eiusmod" }, { "roleId": "elit" }, { "roleId": "non amet" }, { "roleId": "et ullamco" } ], "inactive": true, "_meta": { "created": "1956-06-14T20:20:18.639Z", "updated": "1985-01-30T00:18:17.139Z", "migrationVersion": -39306323 } } ], "type": "operation", "metrics": { "start_time": "dolor esse ad sed", "end_time": -78560710.62297678, "server_id": "in minim qui fugiat velit", "finish_state": "canceled", "run_time": 13672587.804405227, "retrying": true, "user": { "_id": "f0d266c6f5dfd1746ad2ac71", "provenance": "enim eu Lorem reprehenderit", "username": "elit voluptate Excepteur ea", "firstname": "irure", "memberOf": [ { "groupId": "3f33b287fe2d720f3c9925b0", "aaaManaged": false }, { "groupId": "b79eca1767066444de2a924e", "aaaManaged": false }, { "groupId": "27576a67797f622553002e18", "aaaManaged": true } ], "assignedRoles": [ { "roleId": "in ut nisi mollit" }, { "roleId": "aliqua" }, { "roleId": "sit in dolore irure cupidatat" }, { "roleId": "reprehenderit minim" } ], "inactive": true, "lastLogin": "1991-07-05T14:39:58.562Z", "_meta": { "created": "1968-03-04T01:33:26.554Z", "updated": "2005-09-04T18:54:16.001Z", "migrationVersion": -77399173 }, "email": "qui" }, "owner": "" } } }
{ "title": "result", "allOf": [ { "$ref": "common-api#/definitions/success-response" }, { "type": "object", "properties": { "data": { "$ref": "task-api" } } } ] }