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": "A31fBf9E-522B-B7BD-1F35-9DBA70f5a5Dc",
"location": "Broker",
"view": "aliquip ex exercitation quis",
"status": "running",
"app": "occaecat ex nulla anim",
"name": "ut enim velit",
"variables": {
"decorators": [
{
"type": "encryption",
"pointer": "/d/f6xrIw/70C/~1/~0/~0/ujFnwNkaw/p2aL24m"
},
{
"type": "encryption",
"pointer": "/~1/~1"
}
]
},
"last_updated": "2023-02-07T03:31:11.52Z",
"encodingVersion": 1,
"job": {
"_id": "c7dcad58649f4d4192d084f3",
"task": "e28f",
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"ancestors": [
"71084394dd78b7568e787852",
"2ed4f87de7a035c5d20dec27"
]
},
"incomingRefs": [],
"groups": [
"dee1c4c99f777ccdfe525782"
],
"type": "automatic",
"metrics": {
"start_time": "reprehenderit minim",
"end_time": -44117754.40499257,
"server_id": "cillum",
"finish_state": "success",
"run_time": 65642709.283845454,
"retrying": true,
"user": {
"_id": "87ea6a56348330acac3ec547",
"provenance": "dolore",
"username": "adipisicing",
"firstname": "Lorem",
"memberOf": [
{
"groupId": "1af52f429dedc3d75cd19fd0",
"aaaManaged": false
},
{
"groupId": "619cde7981a2683d0da3d70f",
"aaaManaged": true
},
{
"groupId": "7a50e609342321a2eefb9f29",
"aaaManaged": false
}
],
"assignedRoles": [
{
"roleId": "est ex ullamco dolor"
}
],
"inactive": true,
"lastLogin": "2024-09-28T03:57:06.719Z",
"_meta": {
"created": "1985-04-08T09:04:51.481Z",
"updated": "1964-11-13T00:32:49.836Z",
"migrationVersion": 97821182
},
"email": "proident"
},
"owner": "a3f4a710c632a9724687cf9a"
}
}
}