Skip to content

Replace the customized error page

Request

OAuth 2.0 scope:
  • okta.brands.manage

Replaces the customized error page. The customized error page appears in your live environment.

Path
brandIdstringrequired

The ID of the brand

Bodyapplication/jsonrequired
pageContentstring

The HTML for the page

contentSecurityPolicySettingobject(ContentSecurityPolicySetting)
curl -i -X PUT \
  'https://subdomain.okta.com/api/v1/brands/{brandId}/pages/error/customized' \
  -H 'Content-Type: application/json' \
  -d '{
    "pageContent": "string",
    "contentSecurityPolicySetting": {
      "mode": "enforced",
      "reportUri": "string",
      "srcList": [
        "string"
      ]
    }
  }'

Responses

Successfully replaced the customized error page.

Headers
Locationstring, (uri)
Bodyapplication/json
pageContentstring

The HTML for the page

contentSecurityPolicySettingobject(ContentSecurityPolicySetting)
Response
{ "pageContent": "string", "contentSecurityPolicySetting": { "mode": "enforced", "reportUri": "string", "srcList": [ … ] } }