Skip to main content
PUT/point-campaign/:id/

Update or create point campaign

You can update a specific point campaign or create if it doesn't exist.

Attributes

Optional unless marked required

idinteger
A unique identifier for the point campaign which is given by User
namestringrequired
A point campaign name.
start_datedatetime
A datetime when point campaign starts (in UNIX format).
end_datedatetime
A datetime when point campaign ends (in UNIX format).
created_atdatetime
A datetime of point campaign creation.
statusinteger
A point campaign status: Draft = 1, Pending = 2, Active = 3, Finished = 4
assigned_eventsinteger
A counted value based on events assigned to the Point Acquire Rule and Point Exchange Rule.
assigned_product_eventsinteger
A counted value based on product events assigned to the Point Acquire Rule and Point Exchange Rule.
revenue_goalinteger
A sum from all transactions (points) generated by users.
query_mapobject
A valid JSON object with a definition of Engagement groups (filters).

Request​

curl -X PUT "https://<your_app_subdomain>.user.com/api/public/point-campaign/:id/" \
-H "Authorization: Token <your_64_char_api_key>" \
-H "Accept: */*; version=2" \
-H "Content-Type: application/json" \
-d '{
"name": "Spring loyalty campaign",
"start_date": "2026-11-10T09:17:52Z",
"end_date": "2026-12-25T09:17:52Z",
"revenue_goal": 2000
}'

Response examples​

{
"id": 12,
"name": "Spring loyalty campaign",
"start_date": "2026-11-10T09:38:41+01:00",
"end_date": "2026-12-25T09:38:41+01:00",
"created_at": "2026-11-10T08:38:40.641230Z",
"status": 1,
"assigned_events": [],
"assigned_product_events": [],
"revenue_goal": 2000,
"query_map": {}
}

Response fields​

Fields returned in the 200 OK response body.

idinteger
A unique identifier for the point campaign which is given by User
namestring
A point campaign name.
start_datestring (date-time)
A datetime when point campaign starts (in UNIX format).
end_datestring (date-time)
A datetime when point campaign ends (in UNIX format).
created_atstring (date-time)
A datetime of point campaign creation.
statusinteger
A point campaign status: Draft = 1, Pending = 2, Active = 3, Finished = 4
assigned_eventsarray
A counted value based on events assigned to the Point Acquire Rule and Point Exchange Rule.
assigned_product_eventsarray
A counted value based on product events assigned to the Point Acquire Rule and Point Exchange Rule.
revenue_goalinteger
A sum from all transactions (points) generated by users.
query_mapobject
A valid JSON object with a definition of Engagement groups (filters).
note

Errors that can come from any endpoint (401, 429, 500, 502, 504) are described in HTTP response codes.