NodiRef LogoNodiRef
Rewards/Rule sets/Id

/rewards/rule-sets/:id

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

Request Body

{
  "name": "Rule Set Name", // Required
  "description": "Rule Set Description", // Optional
  "starts_at": "2024-03-20T00:00:00Z", // Optional
  "ends_at": "2024-04-20T00:00:00Z", // Optional
  "scopable_id": "UUID", // Optional
  "scopable_type": "Model Class", // Optional
  "status_id": "STATUS_UUID" // Optional
}

Response

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

PUT/rewards/rule-sets/{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/rule-sets/9ec74145-51b5-492b-97bf-9a51f5b05f2d" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Test Iván Update",
    "description": "Test Iván Update Desc",
    "is_active": false,
    "starts_at": "2025-01-01",
    "ends_at": "2025-12-31"
  }'
Empty