Skip to content

Replace a brand

Request

OAuth 2.0 scope:
  • okta.brands.manage

Replaces a brand by brandId

Passing an invalid brandId returns a 404 Not Found status code with the error code E0000007.

Not providing agreeToCustomPrivacyPolicy with customPrivacyPolicyUrl returns a 400 Bad Request status code with the error code E0000001.

Path
brandIdstringrequired

The ID of the brand

Bodyapplication/jsonrequired
agreeToCustomPrivacyPolicyboolean

Consent for updating the custom privacy URL. Not required when resetting the URL.

customPrivacyPolicyUrlstring

Custom privacy policy URL

defaultAppobject(DefaultApp)
emailDomainIdstring

The ID of the email domain

localestring(Language)

The language specified as an IETF BCP 47 language tag

namestringrequired

The name of the brand

Note: You can't use the reserved DRAPP_DOMAIN_BRAND name.

removePoweredByOktaboolean

Removes "Powered by Okta" from the sign-in page in redirect authentication deployments, and "© [current year] Okta, Inc." from the Okta End-User Dashboard

Default:false
curl -i -X PUT \
  'https://subdomain.okta.com/api/v1/brands/{brandId}' \
  -H 'Content-Type: application/json' \
  -d '{
    "customPrivacyPolicyUrl": "https://www.someHost.com/privacy-policy",
    "agreeToCustomPrivacyPolicy": true,
    "removePoweredByOkta": true,
    "name": "New Name For Brand",
    "emailDomainId": "OeD114iNkrcN6aR680g4",
    "locale": "en",
    "defaultApp": {
      "appInstanceId": "0oa114iNkrcN6aR680g4",
      "appLinkName": null,
      "classicApplicationUri": null
    }
  }'

Responses

Successfully replaced the brand

Bodyapplication/json
agreeToCustomPrivacyPolicyboolean

Consent for updating the custom privacy URL. Not required when resetting the URL.

customPrivacyPolicyUrlstring

Custom privacy policy URL

Default:null
defaultAppobject(DefaultApp)
emailDomainIdstring

The ID of the email domain

idstringread-only

The Brand ID

isClassicbooleanread-only

If true, the brand is a classic brand that was created during the OIE upgrade process. These brands are system-managed and can't be created or deleted through the API.

isDefaultbooleanread-only

If true, the Brand is used for the Okta subdomain

localestring(Language)

The language specified as an IETF BCP 47 language tag

namestring

The name of the Brand

removePoweredByOktaboolean

Removes "Powered by Okta" from the sign-in page in redirect authentication deployments, and "© [current year] Okta, Inc." from the Okta End-User Dashboard

Default:false
Response
{ "id": "bnd114iNkrcN6aR680g4", "removePoweredByOkta": true, "agreeToCustomPrivacyPolicy": true, "name": "New Name For Brand", "isDefault": true, "customPrivacyPolicyUrl": "https://www.someHost.com/privacy-policy", "emailDomainId": "OeD114iNkrcN6aR680g4", "defaultApp": { "appInstanceId": "0oa114iNkrcN6aR680g4", "appLinkName": null, "classicApplicationUri": null }, "locale": "en", "_links": { "self": { … }, "themes": { … }, "emailDomain": { … } } }