Skip to content

Replace an IdP

Request

Replaces an existing identity provider (IdP) configuration

Use this endpoint to update the configuration of the specified IdP.

type, domain, and (for Auth0 IdPs) tenant are immutable after creation and can't be changed. You don't need to include them in the request body, but if you do, their values must match the values used to create the IdP — sending a different value returns a 400 error.

Path
idpIdstring, (uuid)required

Identifier of the IdP

Bodyapplication/jsonrequired
descriptionstring

Enter a description for the IdP

namestring

Enter a name for the IdP

typestring

IdP type. This property is immutable after it's created. It's not required, but if you include it in a request body, it must match the value that was used when you originally created the IdP. A different value returns an HTTP 400 error.

Value:"IDP_OKTA"
Discriminator
apiTokenstringrequired

Access token for the IdP

domainstring

The Okta org domain (or custom domain, if you've configured one). This property is immutable after it's created. It's not required, but if you include it in a request body, it must match the value that was used when you originally created the IdP. A different value returns an HTTP 400 error.

curl -i -X PUT \
  'https://oag.domain.tld/api/v2/idps/{idpId}' \
  -H 'Content-Type: application/json' \
  -d '{
    "type": "IDP_OKTA",
    "name": "My Okta IdP",
    "description": "Okta identity provider",
    "domain": "idp.company.com",
    "apiToken": "<api-token>"
  }'

Responses

IdP updated successfully

Bodyapplication/json
descriptionstring

Short description of the IdP

domainstring

IdP domain

idstring, (uuid)

Unique identifier of the IdP

namestring

Name of the IdP

tenantstring

IdP tenant name

typestring

IdP type

Enum:"IDP_OKTA""IDP_AUTH0"
validationStatusobject

The validation status of the IdP

This object contains information about the status of the IdP connection, including whether the IdP is valid and any permissions associated with it.

Response
{ "id": "10229d53-cb73-44b2-89b0-740f679b29b9", "type": "IDP_OKTA", "name": "My Okta IdP", "description": "Okta identity provider", "domain": "idp.company.com", "tenant": "company.okta.com", "validationStatus": { "valid": true, "permissions": { … } } }