Update captcha provider

PUT /api/captcha-provider

Update the captcha provider with the provided settings.

application/json

Body Required

  • config object Required

    The captcha provider config.

    One of:

Responses

  • 200 application/json

    Updated captcha provider.

    Hide response attributes Show response attributes object
    • tenantId string Required

      Maximum length is 21.

    • id string Required

      Minimum length is 1, maximum length is 128.

    • config object Required

      One of:
    • createdAt number Required
    • updatedAt number Required
  • 400

    Bad Request

  • 401

    Unauthorized

  • 403

    Forbidden

PUT /api/captcha-provider
curl \
 --request PUT 'https://[tenant_id].logto.app/api/captcha-provider' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"config":{"type":"string","siteKey":"string","secretKey":"string"}}'
Request examples
{
  "config": {
    "type": "string",
    "siteKey": "string",
    "secretKey": "string"
  }
}
Response examples (200)
{
  "tenantId": "string",
  "id": "string",
  "config": {
    "type": "string",
    "siteKey": "string",
    "secretKey": "string"
  },
  "createdAt": 42.0,
  "updatedAt": 42.0
}