NodiRef LogoNodiRef
Rewards/Actions/Id

/rewards/actions/:id

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

Request Body

{
  "reward_rule_set_id": "RULESET_UUID", // Required
  "reward_type": "REWARD_TYPE", // Required
  "reward_amount": "AMOUNT", // Required
  "max_cap": "MAX_CAP", // Optional
  "currency": "CURRENCY_CODE" // Optional
}

Response

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

PUT/rewards/actions/{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/actions/9ebf3b88-8a91-4b07-9658-ea4f4941ccb0" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "reward_rule_set_id": "9ebf2161-3a22-4ae7-92e2-ca32fa668b9a",
    "action_type": "something here",
    "reward_type": "percentage",
    "reward_amount": "5",
    "max_cap": "500",
    "currency": "EUR"
  }'
Empty