Summary
Claim a task
Description
Assign a Task to the current user.
Route
POST /operations-manager/tasks/:taskId/claim
Roles
admin
apiwrite
engineering
operations
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
taskId |
string |
yes |
The id of the Task iteration to be claimed. |
Copied to Clipboard
{
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
}
Return
DetailsExampleSchema
Name |
Type |
Description |
result |
object |
The result of the claim operation. |
Copied to Clipboard
{
"message": "Successfully imported 3 of 4 documents",
"data": {
"_id": "85c3FbF3-b05d-860A-a3bA-06Ff809311ee",
"location": "Adapter",
"view": "nulla nisi irure officia",
"status": "paused",
"app": "Ut velit sint ipsum",
"name": "laborum pariatur",
"variables": {
"decorators": [
{
"type": "encryption",
"pointer": "/~0/~0/Oa8x.Z/~1/PDWe/nbUJdUkfw/xY6/~0"
}
]
},
"last_updated": "1982-04-30T13:14:13.552Z",
"encodingVersion": 1,
"job": {
"_id": "ed1643fac421fff73fb256dc",
"task": "3a1f",
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"ancestors": null
},
"groups": [
"77184704cf4b7a54f7c9dc4f",
"16f1fc76db490f2dac652833",
"f63bd60ed45734ccdda7e459",
{
"_id": "2cf0a997979bdc4a8d538c8c",
"provenance": "ullamco Lorem ut non",
"name": "nisi est irure",
"description": "anim consequat ut",
"memberOf": [
{
"groupId": "b85543da191b512b3ec41c3d",
"aaaManaged": false
},
{
"groupId": "f94520d18b9fe409617344e4",
"aaaManaged": true
}
],
"assignedRoles": [
{
"roleId": "Ut mollit adipisicing do in"
}
],
"inactive": true,
"_meta": {
"created": "1962-02-07T18:13:25.614Z",
"updated": "1990-06-04T13:42:15.393Z",
"migrationVersion": 89764364
}
}
],
"type": "operation",
"metrics": {
"start_time": "Lorem et officia pariatur",
"end_time": 9694906.749065384,
"server_id": "do",
"finish_state": "success",
"run_time": -39119238.35587414,
"retrying": null,
"user": "Pronghorn",
"owner": "Pronghorn"
}
}
}