---
title: "POST /api/v1/ExternalAuthenticationProvider/Save"
method: POST
path: "/api/v1/ExternalAuthenticationProvider/Save"
tags: ["ExternalAuthenticationProvider"]
---

# POST /api/v1/ExternalAuthenticationProvider/Save

`POST /api/v1/ExternalAuthenticationProvider/Save`

## Request body

- SaveExternalAuthenticationProviderRequest
  - `Provider` ExternalAuthenticationProvider
    - `Id` string, nullable
    - `Type` string, required
    - `Name` string, required
    - `FederationServiceIdentifier` string, required
    - `MetaDataUrl` string, required
    - `ReplyUrl` string, required
    - `LegacyCrystalProvider` boolean
    - `Configuration` Config
      - `ContactSensor` ContactSensor[]
        - `ValueType` string
        - `DeviceConfig` DeviceConfig
          - `DeviceId` string
          - `ComponentId` string
      - `LightSwitch` LightSwitch[]
        - `ValueType` string
        - `DeviceConfig` DeviceConfig
          - `DeviceId` string
          - `ComponentId` string
      - `Minutes` Minutes[]
        - `ValueType` string
        - `StringConfig` StringConfig
          - `Value` string
    - `ScimConfig` ScimConfiguration
      - `Enabled` boolean
      - `Url` string, nullable
      - `AccessToken` string, nullable
    - `UpdateCertification` boolean, nullable
    - `ClaimsMappings` ClaimsMapping[], nullable
      - `Id` string, nullable
      - `ExternalAuthenticationProviderId` string, nullable
      - `ExternalAttribute` string, nullable
      - `LocalAttribute` string, nullable

## Response `200`

- SaveExternalAuthenticationProviderResult
  - `Succeeded` boolean
  - `Message` string, nullable
  - `Code` string, nullable
  - `ExternalAuthenticationProviderId` string, nullable

---

[API](https://skmtc.dev/pads4/apis/nds-services-authentication.md) · [All operations](https://skmtc.dev/pads4/apis/nds-services-authentication/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/pads4/nds-services-authentication/revisions/e0bfd79e98ee/schema)
