---
title: "Import audience"
method: PUT
path: "/public/api/campaigns/{id}/stores"
tags: ["Campaigns"]
---

# Import audience

`PUT /public/api/campaigns/{id}/stores`

Import a simple list of `client_ids` or `titles` of your sites to use it as the audience of an existing campaign.

### Fields

| Field      | Format  | Required | Description     |
|------------|---------|:--------:|-----------------|
|`client_id` |  string |    x     | client_id of the store to be added to the audience  |
|`title`     |  string |    x     | title of the store to be added to the audience  |

**Important:**    
Either `client_id` or `title` is required. We recommend to import client_ids as they are unique.
If multiple stores have the same title in your database they will all be added to the audience if you are importing a list of titles.

## Path parameters

- `id` string, required

## Headers

- `Content-Disposition` string

## Response `200`

OK

- object
  - `data` object
    - `campaign_id` string
    - `title` string
    - `type` string
    - `storesQuery` object
      - `query` object
        - `where` object
          - `_id` object
            - `inq` string[]
      - `total` number
      - `mode` string
      - `selectiondIds` string[]
    - `created_date` string
    - `updated_date` string
  - `errors` object

---

[API](https://skmtc.net/yoobic/apis/yoobic-public-api.md) · [All operations](https://skmtc.net/yoobic/apis/yoobic-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/yoobic/yoobic-public-api/versions/dd57df399bc4/schema)
