Create Targeting Group
POST /v2/partner/templates/{template_id}/targeting-groups
Required scopes
partner:templates:write
Tokens missing any required scope return 401 scope_missing.
See Auth & Scopes for issuance.
Operation
| Operation ID | createTargetingGroup |
| Tags | Operations |
Parameters
| Name | In | Type | Description |
|---|---|---|---|
| template_id * | path | id |
Request body
Required
object
| Field | Type | Description |
|---|---|---|
| id * | id | UUID v4. |
| type * | enum (1) | targeting_group |
| template_id * | id | UUID v4. |
| name * | string | |
| cohort_id | string (uuid) | |
| inline_predicate | predicate | |
| is_active * | boolean | |
| inserted_at * | updated_at | RFC 3339 / ISO 8601 timestamp. |
| updated_at * | updated_at | RFC 3339 / ISO 8601 timestamp. |
Responses
201
Created
object
| Field | Type | Description |
|---|---|---|
| id * | id | UUID v4. |
| type * | enum (1) | targeting_group |
| template_id * | id | UUID v4. |
| name * | string | |
| cohort_id | string (uuid) | |
| inline_predicate | predicate | |
| is_active * | boolean | |
| inserted_at * | updated_at | RFC 3339 / ISO 8601 timestamp. |
| updated_at * | updated_at | RFC 3339 / ISO 8601 timestamp. |
Example request
POST https://api.digitalonboarding.com/v2/partner/templates/{template_id}/targeting-groups
Authorization: Bearer <partner-token>
Content-Type: application/json
Idempotency-Key: <uuid-v4>
{ /* request body matching schema above */ }