Skip to main content
PUT
/
v1
/
loyalties
/
{campaignId}
/
rewards
/
{assignmentId}
Update Campaign Reward Assignment
curl --request PUT \
  --url https://{cluster}.voucherify.io/v1/loyalties/{campaignId}/rewards/{assignmentId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'X-App-Id: <api-key>' \
  --header 'X-App-Token: <api-key>' \
  --data '{
  "parameters": {
    "loyalty": {
      "points": 3
    }
  }
}'
{
  "id": "rewa_Iw9VopmlLm0topBG17ZH1gp5",
  "reward_id": "rew_wg2pvCr5LDhCq4uVQZ9LhuZm",
  "related_object_id": "camp_fkZ28pe7DUAEmmabofkxHI8N",
  "related_object_type": "campaign",
  "parameters": {
    "loyalty": {
      "points": 3
    }
  },
  "created_at": "2022-11-28T18:54:19.747Z",
  "updated_at": "2022-11-28T19:27:40.604Z",
  "object": "reward_assignment"
}

Authorizations

X-App-Id
string
header
required
X-App-Token
string
header
required
Authorization
string
header
required

Path Parameters

campaignId
string
required
Example:
assignmentId
string
required
Example:

Body

application/json
parameters
object

Response

200 - application/json
id
string
required
Example:
reward_id
string
required
Example:
created_at
string<date-time>
required
Example:
updated_at
string<date-time> | null
required
Example:
object
enum<string>
default:reward_assignment
required
Available options:
reward_assignment
Example:
Available options:
campaign
parameters
object