---
title: "Import ad slot venues"
method: POST
path: "/v1/ad-slots/{id}/venues/import"
tags: ["ad-slots"]
---

# Import ad slot venues

`POST /v1/ad-slots/{id}/venues/import`

## Request

- Base URL: `https://api.brixsignage.com`
- URL: `https://api.brixsignage.com/v1/ad-slots/{id}/venues/import`
- Auth: HTTP bearer

Set venue ids from CSV text. Each line is `screen,venue_id`, where `screen` is a screen id or an exact screen name. Valid lines are saved. The response gives the number saved and lists each line that was refused, with the reason.

**Notes.**
- Valid lines are saved. Lines with a problem are listed in `errors` and are not saved.

## Path parameters

- `id` string, required

## Request body

- object
  - `csv` string, required: Lines of `screen,venue_id`. `screen` is a screen id or an exact screen name. A header line is optional.

## Response `200`

Success.

- object
  - `data` object, required
    - `applied` integer, required
    - `errors` object[], required
      - `line` integer, required
      - `screen` string, required
      - `reason` string, required

## Other responses

- `401`: Missing, expired or revoked bearer token.
- `403`: The `dooh` feature is off for this workspace (`feature_disabled`).
- `404`: No such ad slot in this workspace.
- `422`: `csv` is missing or too large.
- `5XX`: Server error. The body carries a `requestId` to quote to support.

---

[API](https://skmtc.dev/brixsignage/apis/brix-api.md) · [All operations](https://skmtc.dev/brixsignage/apis/brix-api/llms.txt) · [OpenAPI document](https://skmtc.dev/brixsignage/apis/brix-api/revisions/02fd3665dc7d?raw)
