Skip to main content
POST
Create context group
Requires admin scope. See Context groups for rail priority and group-rule behaviour.

Authorizations

Authorization
string
header
required

Platform API key issued from Console > Platform API Keys. Format: nsl__.

Body

application/json
name
string
required
Required string length: 1 - 80
description
string | null
Maximum string length: 280
dedupe
boolean

Prevent repeated items across member rails.

backfill
boolean

Refill from each rail’s remaining ranked candidates.

diversity_attribute
string | null

Metadata field for the group cap; send with diversity_max_per_value.

diversity_max_per_value
integer | null
Required range: 1 <= x <= 100
members
object[]

Ordered members. Earlier rails have priority; a context belongs to at most one group.

Response

Successful operation

The response is of type object.