resumeCodeWorkflowRunByKey method

Future<Object?> resumeCodeWorkflowRunByKey({
  1. required Object id,
  2. Map<String, Object?>? query,
  3. Object? body,
  4. Map<String, String>? headers,
})

Beta: POST /{version}/code/workflows/{Id}/resume

Resume the waiting run of a workflow found by its key. Body: key, stepId?, decision? (approved / rejected), payload?. Answers WorkflowRunResponse.

Implementation

Future<Object?> resumeCodeWorkflowRunByKey(
    {required Object id,
    Map<String, Object?>? query,
    Object? body,
    Map<String, String>? headers}) {
  return transport.send(
    route: '/{version}/code/workflows/{Id}/resume',
    method: 'POST',
    query: query,
    body: body,
    headers: headers,
    pathParams: <String, Object?>{'Id': id},
  );
}