CognitiveX Docs
API

PUT /api/reflexes/{reflex_id}

Edit Reflex

PUT /api/reflexes/{reflex_id}

Edit Reflex

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

Parameters

NameInTypeRequiredDescription
reflex_idpathstring (uuid)Yes-
X-Org-IDheaderstring | nullNo-

Request body

A JSON request body is required.

FieldTypeRequiredDescription
situation_descriptionstring | nullNo-
response_descriptionstring | nullNo-
match_thresholdnumber | nullNo-
is_activeboolean | nullNo-

Example request

curl -X PUT https://api.cognitivx.io/api/reflexes/{reflex_id} \
  -H "Authorization: Bearer icog_..." \
  -H "Content-Type: application/json" \
  -d '{
    "situation_description": null,
    "response_description": null,
    "match_threshold": null,
    "is_active": null
  }'

Example response

200 application/json

{}

Responses

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