NodiRef LogoNodiRef
Rewards/Triggers/Conditions/Id

/rewards/triggers/conditions/:id

This endpoint allows you to update an existing reward trigger condition by providing the necessary details.

Request Body

{
  "reward_trigger_id": "TRIGGER_UUID", // Required
  "field": "FIELD_NAME", // Required
  "operator": "OPERATOR", // Required
  "value": "CONDITION_VALUE" // Required
}

Response

The response for this request is an empty array with a 200 HTTP Code

PUT/rewards/triggers/conditions/{id}

Authorization

AuthorizationRequiredBearer <token>

In: header

Request Body

application/jsonOptional

Path Parameters

idRequiredstring

Response Body

Successful response

curl -X PUT "https://api.nodiref.com/rewards/triggers/conditions/9ebf36da-d793-4f97-b455-8d4a6b8a52dc" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "reward_trigger_id": "9ebf2527-ec9d-464f-bb3a-67e74390245e",
    "field": "amount",
    "operator": "<",
    "value": "500"
  }'
Empty