---
title: "create audienceTemplates"
method: POST
path: "/sample/v1/templates/quotaPlan"
tags: ["audienceTemplates"]
---

# create audienceTemplates

`POST /sample/v1/templates/quotaPlan`

## Request body

- CreateTemplate
  - `countryISOCode` string, required — ISO country code
  - `description` string — Template description
  - `languageISOCode` string, required — ISO language code
  - `name` string, required — Template name
  - `quotaPlan` QuotaPlanTemplate, required
    - `filters` TargetingAttribute[] — Filters are attributes which all panelists should have before qualifying for a survey
      - `attributeId` string, required — Id of the attribute
      - `operator` 'INCLUDE' | 'EXCLUDE' | 'include' | 'exclude' — option to exclude or include the options for the particular feature id
      - `options` string[], required — Options for the attribute
    - `quotaGroups` QuotaGroupTemplate[] — Quota groups define the allocated targeting attributes for panelists within this line item
      - `name` string — name or desciption of the quota group.
      - `quotaCells` QuotaCellTemplate[], required — List of quotas
        - `perc` number, double — percentage of the total completes for this cell
        - `quotaNodes` TargetingAttribute[] — nodes in the cell.
          - `attributeId` string, required — Id of the attribute
          - `operator` 'INCLUDE' | 'EXCLUDE' | 'include' | 'exclude' — option to exclude or include the options for the particular feature id
          - `options` string[], required — Options for the attribute
  - `tags` string[] — Tags to identify the template

## Response `200`

OK

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `500` — Internal Server Error

---

[API](https://skmtc.dev/dynata/apis/sample-api.md) · [All operations](https://skmtc.dev/dynata/apis/sample-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/dynata/sample-api/revisions/b3b54de87dfc/schema)
