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 levels to create. Maximum 100 levels per request.

Required array length: 1 - 100 elements
name
string
required

The name of the level.

Example:

"Bronze"

key
string
required

A unique key for the level. Only alphanumeric characters, hyphens, and underscores are permitted.

Pattern: ^[a-zA-Z\d-_]+$
Example:

"bronze"

points
integer
required

The threshold points value for the level.

Required range: x >= 0
Example:

100

description
string

An optional description of the level.

Example:

"Starting level"

badge
object

An optional badge for the level.

Response

Successful operation (no levels created)

Response containing created levels and any per-item issues.

created
AdminPointsLevel · object[]
required

Array of successfully created levels.

issues
AdminIssue · object[]
required

Array of issues encountered during level creation.