CognitiveX Docs
API

PATCH /api/proactive/preferences

Update Preferences

PATCH /api/proactive/preferences

Update Preferences

Authentication: Authorization: Bearer <key> or X-API-Key: <key>. Create keys at developers.cognitivx.io/keys.

Parameters

NameInTypeRequiredDescription
X-Org-IDheaderstring | nullNo-

Request body

A JSON request body is required.

FieldTypeRequiredDescription
in_app_enabledboolean | nullNo-
telegram_enabledboolean | nullNo-
email_enabledboolean | nullNo-
web_push_enabledboolean | nullNo-
daily_capinteger | nullNo-
quiet_startinteger | nullNo-
quiet_endinteger | nullNo-
min_urgencystring | nullNo-
signal_type_opt_insobject | nullNo-

Example request

curl -X PATCH https://api.cognitivx.io/api/proactive/preferences \
  -H "Authorization: Bearer icog_..." \
  -H "Content-Type: application/json" \
  -d '{
    "in_app_enabled": null,
    "telegram_enabled": null,
    "email_enabled": false,
    "web_push_enabled": null,
    "daily_cap": null,
    "quiet_start": null,
    "quiet_end": null,
    "min_urgency": null,
    "signal_type_opt_ins": {}
  }'

Example response

200 application/json

{}

Responses

StatusDescription
200Success. Returns the response body shown below.
422Request validation failed. detail lists each offending field.