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.

Body

application/json

Array of attributes to create. Maximum 100 attributes per request.

Required array length: 1 - 100 elements
name
string
required

The attribute name.

Example:

"Plan"

key
string
required

The attribute key. Only alphanumeric characters, hyphens, and underscores are permitted.

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

"plan"

type
enum<string>
required

The attribute type.

Available options:
user,
event
Example:

"user"

Response

Successful operation (no attributes created)

Response containing created attributes and any per-item issues.

created
AdminAttribute · object[]
required

Array of successfully created attributes.

issues
AdminIssue · object[]
required

Array of issues encountered during attribute creation.