Upsert a Flow assignment.
PUT
/api/admin/flow-assignments
Code sample: Shell / cURL
curl --request PUT \ --url https://auth.example.com/api/admin/flow-assignments \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "target_type": "oidc_client", "target_id": "client_123", "flow_kind": "login", "flow_id": "flow_01HR0X", "enabled": true }'Assigns a published Flow to a tenant default, OIDC client, or SAML SP for the selected Flow kind. A target can have at most one Flow assignment per Flow kind; saving a new assignment replaces any previous assignment for the same target and kind.
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ” Media type application/json
object
target_type
required
string
target_id
string | null
flow_kind
required
Built-in Flow kind or a custom kind prefixed with custom:.
string
flow_id
required
string
enabled
boolean
key
additional properties
Example
{ "target_type": "oidc_client", "target_id": "client_123", "flow_kind": "login", "flow_id": "flow_01HR0X", "enabled": true}Responses
Section titled “ Responses ”Flow assignment mutation response.
Media type application/json
object
success
required
boolean
key
additional properties
Example
{ "success": true}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}