---
title: "Update Authentication Flow"
method: PATCH
path: "/v1/applications/{applicationId}/auth-flows/{authFlowId}"
tags: ["Applications"]
---

# Update Authentication Flow

`PATCH /v1/applications/{applicationId}/auth-flows/{authFlowId}`

## Request

- Base URL: `https://api.anchorbrowser.io`
- URL: `https://api.anchorbrowser.io/v1/applications/{applicationId}/auth-flows/{authFlowId}`
- Auth: API key in header `anchor-api-key`

Updates an existing authentication flow.

## Path parameters

- `applicationId` string, uuid, required
- `authFlowId` string, uuid, required

## Request body

- UpdateAuthFlowRequest
  - `name` string: Name of the authentication flow
  - `description` string: Description of the authentication flow
  - `is_recommended` boolean: Whether this is the recommended authentication flow
  - `methods` string[]: Authentication methods in this flow
  - `custom_fields` CustomFieldDefinition[]: Custom fields for this authentication flow
    - `name` string, required: Name of the custom field

## Response `200`

authentication flow updated successfully

- UpdateAuthFlowResponse
  - `id` string, uuid: Unique identifier for the authentication flow
  - `name` string: Name of the authentication flow
  - `description` string, nullable: Description of the authentication flow
  - `is_recommended` boolean: Whether this is the recommended authentication flow
  - `methods` string[]: Authentication methods in this flow
  - `custom_fields` CustomFieldDefinition[]: Custom fields for this authentication flow
    - `name` string, required: Name of the custom field
  - `created_at` string, date-time: Timestamp when the authentication flow was created
  - `updated_at` string, date-time: Timestamp when the authentication flow was last updated

## Other responses

- `500`: Failed to update authentication flow

---

[API](https://skmtc.dev/anchorbrowser/apis/anchorbrowser-api.md) - [All operations](https://skmtc.dev/anchorbrowser/apis/anchorbrowser-api/llms.txt) - [OpenAPI document](https://skmtc.dev/anchorbrowser/apis/anchorbrowser-api/revisions/9d755f22df0e?raw)
