# Workflows

Response Types:

- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/workflows">workflows</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/workflows#WorkflowUpdateResponse">WorkflowUpdateResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/workflows">workflows</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/workflows#WorkflowListResponse">WorkflowListResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/workflows">workflows</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/workflows#WorkflowDeleteResponse">WorkflowDeleteResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/workflows">workflows</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/workflows#WorkflowGetResponse">WorkflowGetResponse</a>

Methods:

- <code title="put /accounts/{account_id}/workflows/{workflow_name}">client.Workflows.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/workflows#WorkflowService.Update">Update</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, workflowName <a href="https://pkg.go.dev/builtin#string">string</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/workflows">workflows</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/workflows#WorkflowUpdateParams">WorkflowUpdateParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/workflows">workflows</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/workflows#WorkflowUpdateResponse">WorkflowUpdateResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="get /accounts/{account_id}/workflows">client.Workflows.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/workflows#WorkflowService.List">List</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/workflows">workflows</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/workflows#WorkflowListParams">WorkflowListParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/packages/pagination">pagination</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/packages/pagination#V4PagePaginationArray">V4PagePaginationArray</a>[<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/workflows">workflows</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/workflows#WorkflowListResponse">WorkflowListResponse</a>], <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="delete /accounts/{account_id}/workflows/{workflow_name}">client.Workflows.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/workflows#WorkflowService.Delete">Delete</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, workflowName <a href="https://pkg.go.dev/builtin#string">string</a>, body <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/workflows">workflows</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/workflows#WorkflowDeleteParams">WorkflowDeleteParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/workflows">workflows</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/workflows#WorkflowDeleteResponse">WorkflowDeleteResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="get /accounts/{account_id}/workflows/{workflow_name}">client.Workflows.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/workflows#WorkflowService.Get">Get</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, workflowName <a href="https://pkg.go.dev/builtin#string">string</a>, query <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/workflows">workflows</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/workflows#WorkflowGetParams">WorkflowGetParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/workflows">workflows</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/workflows#WorkflowGetResponse">WorkflowGetResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>

## Instances

Response Types:

- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/workflows">workflows</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/workflows#InstanceNewResponse">InstanceNewResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/workflows">workflows</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/workflows#InstanceListResponse">InstanceListResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/workflows">workflows</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/workflows#InstanceBulkResponse">InstanceBulkResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/workflows">workflows</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/workflows#InstanceGetResponse">InstanceGetResponse</a>

Methods:

- <code title="post /accounts/{account_id}/workflows/{workflow_name}/instances">client.Workflows.Instances.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/workflows#InstanceService.New">New</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, workflowName <a href="https://pkg.go.dev/builtin#string">string</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/workflows">workflows</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/workflows#InstanceNewParams">InstanceNewParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/workflows">workflows</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/workflows#InstanceNewResponse">InstanceNewResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="get /accounts/{account_id}/workflows/{workflow_name}/instances">client.Workflows.Instances.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/workflows#InstanceService.List">List</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, workflowName <a href="https://pkg.go.dev/builtin#string">string</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/workflows">workflows</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/workflows#InstanceListParams">InstanceListParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/packages/pagination">pagination</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/packages/pagination#V4PagePaginationArray">V4PagePaginationArray</a>[<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/workflows">workflows</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/workflows#InstanceListResponse">InstanceListResponse</a>], <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="post /accounts/{account_id}/workflows/{workflow_name}/instances/batch">client.Workflows.Instances.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/workflows#InstanceService.Bulk">Bulk</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, workflowName <a href="https://pkg.go.dev/builtin#string">string</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/workflows">workflows</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/workflows#InstanceBulkParams">InstanceBulkParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/packages/pagination">pagination</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/packages/pagination#SinglePage">SinglePage</a>[<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/workflows">workflows</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/workflows#InstanceBulkResponse">InstanceBulkResponse</a>], <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="get /accounts/{account_id}/workflows/{workflow_name}/instances/{instance_id}">client.Workflows.Instances.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/workflows#InstanceService.Get">Get</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, workflowName <a href="https://pkg.go.dev/builtin#string">string</a>, instanceID <a href="https://pkg.go.dev/builtin#string">string</a>, query <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/workflows">workflows</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/workflows#InstanceGetParams">InstanceGetParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/workflows">workflows</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/workflows#InstanceGetResponse">InstanceGetResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>

### Status

Response Types:

- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/workflows">workflows</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/workflows#InstanceStatusEditResponse">InstanceStatusEditResponse</a>

Methods:

- <code title="patch /accounts/{account_id}/workflows/{workflow_name}/instances/{instance_id}/status">client.Workflows.Instances.Status.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/workflows#InstanceStatusService.Edit">Edit</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, workflowName <a href="https://pkg.go.dev/builtin#string">string</a>, instanceID <a href="https://pkg.go.dev/builtin#string">string</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/workflows">workflows</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/workflows#InstanceStatusEditParams">InstanceStatusEditParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/workflows">workflows</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/workflows#InstanceStatusEditResponse">InstanceStatusEditResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>

### Events

Response Types:

- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/workflows">workflows</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/workflows#InstanceEventNewResponse">InstanceEventNewResponse</a>

Methods:

- <code title="post /accounts/{account_id}/workflows/{workflow_name}/instances/{instance_id}/events/{event_type}">client.Workflows.Instances.Events.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/workflows#InstanceEventService.New">New</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, workflowName <a href="https://pkg.go.dev/builtin#string">string</a>, instanceID <a href="https://pkg.go.dev/builtin#string">string</a>, eventType <a href="https://pkg.go.dev/builtin#string">string</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/workflows">workflows</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/workflows#InstanceEventNewParams">InstanceEventNewParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/workflows">workflows</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/workflows#InstanceEventNewResponse">InstanceEventNewResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>

## Versions

Response Types:

- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/workflows">workflows</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/workflows#VersionListResponse">VersionListResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/workflows">workflows</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/workflows#VersionGetResponse">VersionGetResponse</a>

Methods:

- <code title="get /accounts/{account_id}/workflows/{workflow_name}/versions">client.Workflows.Versions.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/workflows#VersionService.List">List</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, workflowName <a href="https://pkg.go.dev/builtin#string">string</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/workflows">workflows</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/workflows#VersionListParams">VersionListParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/packages/pagination">pagination</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/packages/pagination#V4PagePaginationArray">V4PagePaginationArray</a>[<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/workflows">workflows</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/workflows#VersionListResponse">VersionListResponse</a>], <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="get /accounts/{account_id}/workflows/{workflow_name}/versions/{version_id}">client.Workflows.Versions.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/workflows#VersionService.Get">Get</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, workflowName <a href="https://pkg.go.dev/builtin#string">string</a>, versionID <a href="https://pkg.go.dev/builtin#string">string</a>, query <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/workflows">workflows</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/workflows#VersionGetParams">VersionGetParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/workflows">workflows</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/workflows#VersionGetResponse">VersionGetResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
