camunda-client 0.1.2

Rust client for camunda Rest API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
# \ExternalTaskApi

All URIs are relative to *http://localhost:8080/engine-rest*

Method | HTTP request | Description
------------- | ------------- | -------------
[**complete_external_task_resource**]ExternalTaskApi.md#complete_external_task_resource | **post** /external-task/{id}/complete | 
[**extend_lock**]ExternalTaskApi.md#extend_lock | **post** /external-task/{id}/extendLock | 
[**fetch_and_lock**]ExternalTaskApi.md#fetch_and_lock | **post** /external-task/fetchAndLock | 
[**get_external_task**]ExternalTaskApi.md#get_external_task | **get** /external-task/{id} | 
[**get_external_task_error_details**]ExternalTaskApi.md#get_external_task_error_details | **get** /external-task/{id}/errorDetails | 
[**get_external_tasks**]ExternalTaskApi.md#get_external_tasks | **get** /external-task | 
[**get_external_tasks_count**]ExternalTaskApi.md#get_external_tasks_count | **get** /external-task/count | 
[**get_topic_names**]ExternalTaskApi.md#get_topic_names | **get** /external-task/topic-names | 
[**handle_external_task_bpmn_error**]ExternalTaskApi.md#handle_external_task_bpmn_error | **post** /external-task/{id}/bpmnError | 
[**handle_failure**]ExternalTaskApi.md#handle_failure | **post** /external-task/{id}/failure | 
[**query_external_tasks**]ExternalTaskApi.md#query_external_tasks | **post** /external-task | 
[**query_external_tasks_count**]ExternalTaskApi.md#query_external_tasks_count | **post** /external-task/count | 
[**set_external_task_resource_priority**]ExternalTaskApi.md#set_external_task_resource_priority | **put** /external-task/{id}/priority | 
[**set_external_task_resource_retries**]ExternalTaskApi.md#set_external_task_resource_retries | **put** /external-task/{id}/retries | 
[**set_external_task_retries**]ExternalTaskApi.md#set_external_task_retries | **put** /external-task/retries | 
[**set_external_task_retries_async_operation**]ExternalTaskApi.md#set_external_task_retries_async_operation | **post** /external-task/retries-async | 
[**unlock**]ExternalTaskApi.md#unlock | **post** /external-task/{id}/unlock | 



## complete_external_task_resource

> complete_external_task_resource(id, complete_external_task_dto)


Completes an external task by id and updates process variables.

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**id** | **String** | The id of the task to complete. | [required] |
**complete_external_task_dto** | Option<[**CompleteExternalTaskDto**]CompleteExternalTaskDto.md> |  |  |

### Return type

 (empty response body)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## extend_lock

> extend_lock(id, extend_lock_on_external_task_dto)


Extends the timeout of the lock by a given amount of time.

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**id** | **String** | The id of the external task. | [required] |
**extend_lock_on_external_task_dto** | Option<[**ExtendLockOnExternalTaskDto**]ExtendLockOnExternalTaskDto.md> |  |  |

### Return type

 (empty response body)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## fetch_and_lock

> Vec<crate::models::LockedExternalTaskDto> fetch_and_lock(fetch_external_tasks_dto)


Fetches and locks a specific number of external tasks for execution by a worker. Query can be restricted to specific task topics and for each task topic an individual lock time can be provided.

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**fetch_external_tasks_dto** | Option<[**FetchExternalTasksDto**]FetchExternalTasksDto.md> |  |  |

### Return type

[**Vec<crate::models::LockedExternalTaskDto>**](LockedExternalTaskDto.md)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## get_external_task

> crate::models::ExternalTaskDto get_external_task(id)


Retrieves an external task by id, corresponding to the `ExternalTask` interface in the engine.

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**id** | **String** | The id of the external task to be retrieved. | [required] |

### Return type

[**crate::models::ExternalTaskDto**](ExternalTaskDto.md)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## get_external_task_error_details

> String get_external_task_error_details(id)


Retrieves the error details in the context of a running external task by id.

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**id** | **String** | The id of the external task for which the error details should be retrieved. | [required] |

### Return type

**String**

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: text/plain, application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## get_external_tasks

> Vec<crate::models::ExternalTaskDto> get_external_tasks(external_task_id, external_task_id_in, topic_name, worker_id, locked, not_locked, with_retries_left, no_retries_left, lock_expiration_after, lock_expiration_before, activity_id, activity_id_in, execution_id, process_instance_id, process_instance_id_in, process_definition_id, tenant_id_in, active, suspended, priority_higher_than_or_equals, priority_lower_than_or_equals, sort_by, sort_order, first_result, max_results)


Queries for the external tasks that fulfill given parameters. Parameters may be static as well as dynamic runtime properties of executions. The size of the result set can be retrieved by using the [Get External Task Count](https://docs.camunda.org/manual/7.13/reference/rest/external-task/get-query-count/) method.

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**external_task_id** | Option<**String**> | Filter by an external task's id. |  |
**external_task_id_in** | Option<**String**> | Filter by the comma-separated list of external task ids. |  |
**topic_name** | Option<**String**> | Filter by an external task topic. |  |
**worker_id** | Option<**String**> | Filter by the id of the worker that the task was most recently locked by. |  |
**locked** | Option<**bool**> | Only include external tasks that are currently locked (i.e., they have a lock time and it has not expired). Value may only be `true`, as `false` matches any external task. |  |
**not_locked** | Option<**bool**> | Only include external tasks that are currently not locked (i.e., they have no lock or it has expired). Value may only be `true`, as `false` matches any external task. |  |
**with_retries_left** | Option<**bool**> | Only include external tasks that have a positive (&gt; 0) number of retries (or `null`). Value may only be `true`, as `false` matches any external task. |  |
**no_retries_left** | Option<**bool**> | Only include external tasks that have 0 retries. Value may only be `true`, as `false` matches any external task. |  |
**lock_expiration_after** | Option<**String**> | Restrict to external tasks that have a lock that expires after a given date. By [default]https://docs.camunda.org/manual/7.13/reference/rest/overview/date-format/, the date must have the format `yyyy-MM-dd'T'HH:mm:ss.SSSZ`, e.g., `2013-01-23T14:42:45.000+0200`. |  |
**lock_expiration_before** | Option<**String**> | Restrict to external tasks that have a lock that expires before a given date. By [default]https://docs.camunda.org/manual/7.13/reference/rest/overview/date-format/, the date must have the format `yyyy-MM-dd'T'HH:mm:ss.SSSZ`, e.g., `2013-01-23T14:42:45.000+0200`. |  |
**activity_id** | Option<**String**> | Filter by the id of the activity that an external task is created for. |  |
**activity_id_in** | Option<**String**> | Filter by the comma-separated list of ids of the activities that an external task is created for. |  |
**execution_id** | Option<**String**> | Filter by the id of the execution that an external task belongs to. |  |
**process_instance_id** | Option<**String**> | Filter by the id of the process instance that an external task belongs to. |  |
**process_instance_id_in** | Option<**String**> | Filter by a comma-separated list of process instance ids that an external task may belong to. |  |
**process_definition_id** | Option<**String**> | Filter by the id of the process definition that an external task belongs to. |  |
**tenant_id_in** | Option<**String**> | Filter by a comma-separated list of tenant ids. An external task must have one of the given tenant ids. |  |
**active** | Option<**bool**> | Only include active tasks. Value may only be `true`, as `false` matches any external task. |  |
**suspended** | Option<**bool**> | Only include suspended tasks. Value may only be `true`, as `false` matches any external task. |  |
**priority_higher_than_or_equals** | Option<**i64**> | Only include jobs with a priority higher than or equal to the given value. Value must be a valid `long` value. |  |
**priority_lower_than_or_equals** | Option<**i64**> | Only include jobs with a priority lower than or equal to the given value. Value must be a valid `long` value. |  |
**sort_by** | Option<**String**> | Sort the results lexicographically by a given criterion. Must be used in conjunction with the sortOrder parameter. |  |
**sort_order** | Option<**String**> | Sort the results in a given order. Values may be asc for ascending order or desc for descending order. Must be used in conjunction with the sortBy parameter. |  |
**first_result** | Option<**i32**> | Pagination of results. Specifies the index of the first result to return. |  |
**max_results** | Option<**i32**> | Pagination of results. Specifies the maximum number of results to return. Will return less results if there are no more results left. |  |

### Return type

[**Vec<crate::models::ExternalTaskDto>**](ExternalTaskDto.md)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## get_external_tasks_count

> crate::models::CountResultDto get_external_tasks_count(external_task_id, external_task_id_in, topic_name, worker_id, locked, not_locked, with_retries_left, no_retries_left, lock_expiration_after, lock_expiration_before, activity_id, activity_id_in, execution_id, process_instance_id, process_instance_id_in, process_definition_id, tenant_id_in, active, suspended, priority_higher_than_or_equals, priority_lower_than_or_equals)


Queries for the number of external tasks that fulfill given parameters. Takes the same parameters as the [Get External Tasks](https://docs.camunda.org/manual/7.13/reference/rest/external-task/get-query/) method.

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**external_task_id** | Option<**String**> | Filter by an external task's id. |  |
**external_task_id_in** | Option<**String**> | Filter by the comma-separated list of external task ids. |  |
**topic_name** | Option<**String**> | Filter by an external task topic. |  |
**worker_id** | Option<**String**> | Filter by the id of the worker that the task was most recently locked by. |  |
**locked** | Option<**bool**> | Only include external tasks that are currently locked (i.e., they have a lock time and it has not expired). Value may only be `true`, as `false` matches any external task. |  |
**not_locked** | Option<**bool**> | Only include external tasks that are currently not locked (i.e., they have no lock or it has expired). Value may only be `true`, as `false` matches any external task. |  |
**with_retries_left** | Option<**bool**> | Only include external tasks that have a positive (&gt; 0) number of retries (or `null`). Value may only be `true`, as `false` matches any external task. |  |
**no_retries_left** | Option<**bool**> | Only include external tasks that have 0 retries. Value may only be `true`, as `false` matches any external task. |  |
**lock_expiration_after** | Option<**String**> | Restrict to external tasks that have a lock that expires after a given date. By [default]https://docs.camunda.org/manual/7.13/reference/rest/overview/date-format/, the date must have the format `yyyy-MM-dd'T'HH:mm:ss.SSSZ`, e.g., `2013-01-23T14:42:45.000+0200`. |  |
**lock_expiration_before** | Option<**String**> | Restrict to external tasks that have a lock that expires before a given date. By [default]https://docs.camunda.org/manual/7.13/reference/rest/overview/date-format/, the date must have the format `yyyy-MM-dd'T'HH:mm:ss.SSSZ`, e.g., `2013-01-23T14:42:45.000+0200`. |  |
**activity_id** | Option<**String**> | Filter by the id of the activity that an external task is created for. |  |
**activity_id_in** | Option<**String**> | Filter by the comma-separated list of ids of the activities that an external task is created for. |  |
**execution_id** | Option<**String**> | Filter by the id of the execution that an external task belongs to. |  |
**process_instance_id** | Option<**String**> | Filter by the id of the process instance that an external task belongs to. |  |
**process_instance_id_in** | Option<**String**> | Filter by a comma-separated list of process instance ids that an external task may belong to. |  |
**process_definition_id** | Option<**String**> | Filter by the id of the process definition that an external task belongs to. |  |
**tenant_id_in** | Option<**String**> | Filter by a comma-separated list of tenant ids. An external task must have one of the given tenant ids. |  |
**active** | Option<**bool**> | Only include active tasks. Value may only be `true`, as `false` matches any external task. |  |
**suspended** | Option<**bool**> | Only include suspended tasks. Value may only be `true`, as `false` matches any external task. |  |
**priority_higher_than_or_equals** | Option<**i64**> | Only include jobs with a priority higher than or equal to the given value. Value must be a valid `long` value. |  |
**priority_lower_than_or_equals** | Option<**i64**> | Only include jobs with a priority lower than or equal to the given value. Value must be a valid `long` value. |  |

### Return type

[**crate::models::CountResultDto**](CountResultDto.md)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## get_topic_names

> Vec<String> get_topic_names(with_locked_tasks, with_unlocked_tasks, with_retries_left)


Queries for distinct topic names of external tasks that fulfill given parameters. Query can be restricted to only tasks with retries left, tasks that are locked, or tasks that are unlocked. The parameters withLockedTasks and withUnlockedTasks are exclusive. Setting them both to true will return an empty list. Providing no parameters will return a list of all distinct topic names with external tasks.

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**with_locked_tasks** | Option<**bool**> | Only include external tasks that are currently locked (i.e., they have a lock time and it has not expired). Value may only be `true`, as `false` matches any external task. |  |
**with_unlocked_tasks** | Option<**bool**> | Only include external tasks that are currently not locked (i.e., they have no lock or it has expired). Value may only be `true`, as `false` matches any external task. |  |
**with_retries_left** | Option<**bool**> | Only include external tasks that have a positive (&gt; 0) number of retries (or `null`). Value may only be `true`, as `false` matches any external task. |  |

### Return type

**Vec<String>**

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## handle_external_task_bpmn_error

> handle_external_task_bpmn_error(id, external_task_bpmn_error)


Reports a business error in the context of a running external task by id. The error code must be specified to identify the BPMN error handler.

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**id** | **String** | The id of the external task in which context a BPMN error is reported. | [required] |
**external_task_bpmn_error** | Option<[**ExternalTaskBpmnError**]ExternalTaskBpmnError.md> |  |  |

### Return type

 (empty response body)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## handle_failure

> handle_failure(id, external_task_failure_dto)


Reports a failure to execute an external task by id. A number of retries and a timeout until the task can be retried can be specified. If retries are set to 0, an incident for this task is created.

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**id** | **String** | The id of the external task to report a failure for. | [required] |
**external_task_failure_dto** | Option<[**ExternalTaskFailureDto**]ExternalTaskFailureDto.md> |  |  |

### Return type

 (empty response body)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## query_external_tasks

> Vec<crate::models::ExternalTaskDto> query_external_tasks(first_result, max_results, external_task_query_dto)


Queries for external tasks that fulfill given parameters in the form of a JSON object.  This method is slightly more powerful than the [Get External Tasks](https://docs.camunda.org/manual/7.13/reference/rest/external-task/get-query/) method because it allows to specify a hierarchical result sorting.

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**first_result** | Option<**i32**> | Pagination of results. Specifies the index of the first result to return. |  |
**max_results** | Option<**i32**> | Pagination of results. Specifies the maximum number of results to return. Will return less results if there are no more results left. |  |
**external_task_query_dto** | Option<[**ExternalTaskQueryDto**]ExternalTaskQueryDto.md> |  |  |

### Return type

[**Vec<crate::models::ExternalTaskDto>**](ExternalTaskDto.md)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## query_external_tasks_count

> crate::models::CountResultDto query_external_tasks_count(external_task_query_dto)


Queries for the number of external tasks that fulfill given parameters. This method takes the same message body as the [Get External Tasks (POST)](https://docs.camunda.org/manual/7.13/reference/rest/external-task/post-query/) method.

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**external_task_query_dto** | Option<[**ExternalTaskQueryDto**]ExternalTaskQueryDto.md> |  |  |

### Return type

[**crate::models::CountResultDto**](CountResultDto.md)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## set_external_task_resource_priority

> set_external_task_resource_priority(id, priority_dto)


Sets the priority of an existing external task by id. The default value of a priority is 0.

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**id** | **String** | The id of the external task to set the priority for. | [required] |
**priority_dto** | Option<[**PriorityDto**]PriorityDto.md> |  |  |

### Return type

 (empty response body)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## set_external_task_resource_retries

> set_external_task_resource_retries(id, retries_dto)


Sets the number of retries left to execute an external task by id. If retries are set to 0, an  incident is created.

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**id** | **String** | The id of the external task to set the number of retries for. | [required] |
**retries_dto** | Option<[**RetriesDto**]RetriesDto.md> |  |  |

### Return type

 (empty response body)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## set_external_task_retries

> set_external_task_retries(set_retries_for_external_tasks_dto)


Sets the number of retries left to execute external tasks by id synchronously. If retries are set to 0,  an incident is created.

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**set_retries_for_external_tasks_dto** | Option<[**SetRetriesForExternalTasksDto**]SetRetriesForExternalTasksDto.md> |  |  |

### Return type

 (empty response body)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## set_external_task_retries_async_operation

> crate::models::BatchDto set_external_task_retries_async_operation(set_retries_for_external_tasks_dto)


Sets the number of retries left to execute external tasks by id asynchronously. If retries are set to 0, an incident is created.

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**set_retries_for_external_tasks_dto** | Option<[**SetRetriesForExternalTasksDto**]SetRetriesForExternalTasksDto.md> |  |  |

### Return type

[**crate::models::BatchDto**](BatchDto.md)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## unlock

> unlock(id)


Unlocks an external task by id. Clears the task's lock expiration time and worker id.

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**id** | **String** | The id of the external task to unlock. | [required] |

### Return type

 (empty response body)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)