PATCH
/
reward_templates
/
{reward_template_id}
Patch Reward Template
curl --request PATCH \
  --url https://api.synctera.com/v1/reward_templates/{reward_template_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "amount": 1000,
  "currency": "USD",
  "description": "Referral Reward",
  "internal_account_id": "42943c51-e4ff-4e57-9558-08cab6b963c8",
  "is_enabled": true,
  "metadata": {},
  "subtype": "ACCOUNT_OPENING_BONUS"
}'
{
  "amount": 1000,
  "currency": "USD",
  "description": "Referral Reward",
  "internal_account_id": "42943c51-e4ff-4e57-9558-08cab6b963c8",
  "is_enabled": true,
  "metadata": {},
  "creation_time": "2010-05-06T12:23:34.321Z",
  "id": "85943c51-e4ff-4e57-9558-08cab6b96364",
  "last_updated_time": "2010-05-06T12:23:34.321Z",
  "subtype": "ACCOUNT_OPENING_BONUS",
  "tenant": "abcdef_ghijkl"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Idempotency-Key
string

An idempotency key is an arbitrary unique value generated by client to detect subsequent retries of the same request. It is recommended that a UUID or a similar random identifier be used as an idempotency key. A different key must be used for each request, unless it is a retry.

Example:

"7d943c51-e4ff-4e57-9558-08cab6b963c7"

Path Parameters

reward_template_id
string<uuid>
required

The unique identifier of a reward template

Example:

"64438afd-fa20-4010-a573-2bbdca77cdb6"

Body

application/json

Response

200
application/json

Updated reward template

The response is of type object.