# Create point exchange rule

You can create a new point exchange rule.

POST /point-exchange-rule/

Attributes Type Required Description
id integer yes A unique identifier for the point acquire rule which is given by User.com

# Request

  • CURL
  • JavaScript
  • PHP
  • Python
curl --location --request POST 'https://<your_app_subdomain>.user.com/api/public/point-exchange-rule/' \
--header 'accept: application/json' \
--header 'Content-Type: application/json' \
--header 'Authorization: Token <your_64_char_api_key>' \
--header 'Accept: */*; version=2' \
--data-raw '{  "name": "string",  "amount": 0,  "end_date": "2022-03-09T13:49:54.588Z",  "max_daily_use_count": 0,  "max_trigger_count_interval": 0,  "max_trigger_count_value": 0,  "perk": {},  "point_campaign": 1,  "user_attribute": 1,  "level_threshold": 0}'

# Response

{
  "id": 1,
  "name": "string",
  "amount": 0,
  "end_date": "2022-03-09T13:49:54.588000Z",
  "max_daily_use_count": 0,
  "max_trigger_count_interval": 0,
  "max_trigger_count_value": 0,
  "perk": {},
  "point_campaign": 1,
  "user_attribute": 1,
  "level_threshold": 1
}