> ## Documentation Index
> Fetch the complete documentation index at: https://docs.hopae.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Set Default Workflow

> Set a workflow as the app default.

Set this workflow as the app default. The default workflow is used when no `workflow_id` is specified in the OIDC authorize request.

## Request

<ParamField header="Authorization" type="string" required>
  `Bearer <API_KEY>` from Console > Developers > Workspace API Keys.
</ParamField>

<ParamField header="Idempotency-Key" type="string">
  Optional client-generated string (max 255 chars) to safely retry without re-executing. Valid for 24 hours.
</ParamField>

### Path parameters

<ParamField path="client_id" type="string" required>
  Client identifier of the app.
</ParamField>

<ParamField path="workflow_id" type="string" required>
  Workflow identifier to set as default.
</ParamField>

## Response

<ResponseField name="success" type="boolean">
  `true` if default was updated.
</ResponseField>

<RequestExample>
  ```bash theme={null}
  curl -X POST \
    -H "Authorization: Bearer sk_workspace_test_..." \
    "https://sandbox.api.hopae.com/connect/v1/apps/abc123/workflows/wf_abc123/set-default"
  ```
</RequestExample>

<ResponseExample>
  ```json theme={null}
  { "success": true }
  ```
</ResponseExample>
