Update a User Authentication OpenID Connect Profile Info
PUT Update a User Authentication OpenID Connect Profile Info
https://useast.api.elasticpath.com/v2/authentication-realms/:realm-id/user-authentication-info/:user-authentication-info-id/user-authentication-oidc-profile-info/:user-authentication-oidc-profile-info-id
Parameters
Path parameters
| Name | Required | Type | Description | 
|---|---|---|---|
| realm-id | Required | string | The ID for the authentication-realm containing the requested user-authentication-oidc-profile-infoobject. | 
| user-authentication-info-id | Required | string | The ID for the user-authentication-infoobject containing the requesteduser-authentication-oidc-profile-infoobject. | 
| user-authentication-oidc-profile-info-id | Required | string | The ID for the requested user-authentication-oidc-profile-infoobject. | 
Headers
| Name | Required | Type | Description | 
|---|---|---|---|
| Authorization | Required | string | The Bearer token required to get access to the API. | 
Body
| Name | Required | Type | Description | 
|---|---|---|---|
| type | Required | string | The type of the object to create. It must be set to user_authentication_oidc_profile_info. | 
| subject | Optional | string | The identifier within the issuer for the user-authentication-infoobject. For more information, see the OpenID Connect specification section. | 
| issuer | Optional | string | The identifier for the issuer of the oidc profile. For more information, see the OpenID Connect specification section. | 
| oidc_profile_id | Optional | string | The identifier for the OpenID Connect Profile to which the user-authentication-infoobject should be linked. Once created, you cannot changeoidc_profile_id. | 
|
Request Examples
Curl
curl -X PUT https://useast.api.elasticpath.com/v2/authentication-realms/:id/user-authentication-info/:id2/user-authentication-oidc-profile-info/:user-authentication-oidc-profile-info-id/ \
    -H "Authorization: Bearer XXXX" \
    -H "Content-Type: application/json" \
    -d $ {
     "data": {
       "type": "user_authentication_info",
        "subject": "testsubject2updated",
        "issuer": "https://sso.provider.com/auth/realms/Sample/",
        "oidc_profile_id": "7f213d23-0a87-41b7-ad24-c58957ac7b9b"
     }
   }
JavaScript SDK
const MoltinGateway = require('@moltin/sdk').gateway
const Moltin = MoltinGateway({
  client_id: 'X'
})
const realmId = 'XXXX'
const userAuthenticationInfoId = 'XXXX'
Moltin.UserAuthenticationOidcProfileInfo.Update({
      realmId,
      userAuthenticationInfoId,
      body
    }
  )
Response Example
200 OK
{
  "data": {
    "id": "dc764c11-2a4b-4ab3-be71-45b06d6fec7b",
    "subject": "testsubject2updated",
    "issuer": "https://sso.provider.com/auth/realms/Sample/",
    "meta": {
      "created_at": "2021-06-07T18:25:02.696Z",
      "updated_at": "2021-06-07T18:25:02.696Z"
    },
    "type": "user_authentication_oidc_profile_info",
    "oidc_profile_id": "7f213d23-0a87-41b7-ad24-c58957ac7b9b"
  },
  "links": {
    "self": "https://useast.api.elasticpath.com/v2/authentication-realms/b6cf44b5-5d52-46b8-ae6f-7f28847fb269/user-authentication-info/9738663b-2f64-47e0-b70f-eecd9fb28f53/user-authentication-oidc-profile-info/dc764c11-2a4b-4ab3-be71-45b06d6fec7b"
  }
}