---
title: "Set Default Application Provider"
method: PATCH
path: "/v1/applications/{id}/providers/{providerId}/default"
tags: ["Application Providers API"]
---

# Set Default Application Provider

`PATCH /v1/applications/{id}/providers/{providerId}/default`

Use this endpoint to set a provider as the default for an application. The default provider is used when no specific provider is requested.

## Path parameters

- `id` string, required
- `providerId` string, required

## Response `200`

Indicates that the provider was successfully set as default.

- ProviderItemResponse — Information about a provider linked to an application.
  - `providerId` string — Unique identifier of the linked provider.
  - `category` 'Email' | 'SMS' — Provider category.
  - `type` 'SendGrid' | 'Twilio' — Provider implementation type.
  - `canSignIn` boolean — Whether users can sign in using this provider.
  - `canSignUp` boolean — Whether new users can sign up using this provider.
  - `canUnlink` boolean — Whether users can unlink this provider from their account.
  - `prompted` boolean — Whether users are prompted to link this provider on login.
  - `alertType` string — Alert type configuration for this provider link.
  - `rule` string — Custom rule applied to this provider link.

## Other responses

- `400`
- `404`
- `500`

---

[API](https://skmtc.net/lerian/apis/identity-plugin.md) · [All operations](https://skmtc.net/lerian/apis/identity-plugin/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/lerian/identity-plugin/versions/25daba385532/schema)
