Skip to content

Replace a CAPTCHA instance

Request

Identity Engine
OAuth 2.0 scope:
  • okta.captchas.manage

Replaces the properties for a specified CAPTCHA instance

Path
captchaIdstringrequired

The unique key used to identify your CAPTCHA instance

Bodyapplication/jsonrequired
namestring

The name of the CAPTCHA instance

secretKeystringwrite-only

The secret key issued from the CAPTCHA provider to perform server-side validation for a CAPTCHA token

siteKeystring

The site key issued from the CAPTCHA provider to render a CAPTCHA on a page

typestring(CAPTCHAType)

The type of CAPTCHA provider

Enum:"HCAPTCHA""RECAPTCHA_V2"
curl -i -X PUT \
  'https://subdomain.okta.com/api/v1/captchas/{captchaId}' \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "myHCaptcha",
    "secretKey": "xxxxxxxxxxx",
    "siteKey": "xxxxxxxxxxx",
    "type": "HCAPTCHA"
  }'

Responses

OK

Bodyapplication/json
idstringread-only

The unique key for the CAPTCHA instance

namestring

The name of the CAPTCHA instance

siteKeystring

The site key issued from the CAPTCHA provider to render a CAPTCHA on a page

typestring(CAPTCHAType)

The type of CAPTCHA provider

Enum:"HCAPTCHA""RECAPTCHA_V2"
Response
{ "id": "abcd1234", "name": "myHCaptcha", "siteKey": "xxxxxxxxxxx", "type": "HCAPTCHA", "_links": { "self": { … } } }