Skip to content

Delete a Flow assignment.

DELETE
/api/admin/flow-assignments
Code sample: Shell / cURL
curl --request DELETE \
--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" }'

Removes the Flow assignment for a tenant default, OIDC client, or SAML SP and Flow kind. Removing a client or SP assignment allows the runtime to fall back to a broader assignment.

Media type application/json
object
target_type
required
string
Allowed values: tenant oidc_client saml_sp
target_id
string | null
flow_kind
required

Built-in Flow kind or a custom kind prefixed with custom:.

string
/^(login|registration|approve|account|custom:[a-z0-9][a-z0-9_-]{0,63})$/
key
additional properties
Example
{
"target_type": "oidc_client",
"target_id": "client_123",
"flow_kind": "login"
}

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"
}