Composable Frontend 2.0 Learn more 

  • Commerce Cloud/
    Authentication/
    Single Sign-on/
    Password Profiles API/
    Delete a Password Profile

    Delete a Password Profile

    Deleting a password-profile object removes all related user-authentication-password-profile-info objects of the password-profile object.

    DELETE Delete by ID

    https://useast.api.elasticpath.com/v2/authentication-realms/:realm-id/password-profiles/:profile-id
    

    Parameters

    Path parameters

    NameRequiredTypeDescription
    realm-idRequiredstringThe ID for the authentication-realm containing the requested password profile.
    profile-idRequiredstringThe ID for the requested password profile to delete.

    Headers

    NameRequiredTypeDescription
    AuthorizationRequiredstringThe Bearer token required to get access to the API.

    Request Examples

    Curl

    curl -X DELETE https://useast.api.elasticpath.com/v2/authentication-realms/:realm-id/password-profiles/:profile-id \
         -H "Authorization: Bearer XXXX"
    

    JavaScript SDK

    const MoltinGateway = require('@moltin/sdk').gateway
    const Moltin = MoltinGateway({
      client_id: 'X'
    })
    const realmId = 'XXXX'
    const profileId = 'XXXX'
    Moltin.PasswordProfile.Delete({
          realmId,
          profileId
        }
      )
    

    Response Example

    204 No Content

    Previous
    Update a Password Profile