Skip to main content
POST
JavaScript

Authorizations

X-API-KEY
string
header
required

Headers

Tenant-ID
string

The tenant identifier for multi-tenant organisations. Required when the organisation has multi-tenancy enabled. Pass your own internal customer ID for the tenant. Ignored for single-tenant organisations.

Path Parameters

systemId
string<uuid>
required

The UUID of the points system.

Body

application/json

Array of boosts to create.

Required array length: 1 - 100 elements
name
string
required

The name of the boost.

Maximum string length: 255
Example:

"Double XP Weekend"

start
string<date>
required

The start date of the boost (YYYY-MM-DD).

Example:

"2024-01-01"

multiplier
number
required

The points multiplier. Must be greater than 0, not equal to 1, and less than 100.

Example:

2

userId
string | null

The ID of the user to create a boost for. Mutually exclusive with userAttributes — providing userAttributes when userId is set will result in an error. Omit for a global boost.

Example:

"user-123"

end
string<date> | null

The end date of the boost (YYYY-MM-DD). If null, the boost has no end date.

Example:

"2024-01-03"

rounding
enum<string>
default:down

How to round the boosted points. Defaults to 'down'.

Available options:
down,
up,
nearest
Example:

"down"

userAttributes
object[] | null

User attribute filters for the boost. Cannot be provided when userId is set.

Example:

Response

Successful operation (no boosts created)

Response containing created boosts and any issues encountered while creating points boosts.

created
AdminPointsBoost · object[]
required

Array of successfully created boosts.

issues
AdminIssue · object[]
required

Array of issues encountered during boost creation.