---
title: "Upload a new collection"
method: POST
path: "/api/v1/cwa/collections"
tags: ["CWA"]
---

# Upload a new collection

`POST /api/v1/cwa/collections`

## Request

- Base URL: `https://toolkit.browserstack.com`
- URL: `https://toolkit.browserstack.com/api/v1/cwa/collections`
- Auth: API key in cookie `_wdt_rails_session`

Upload a new collection with file attachment for Common Workflow Automation

## Request body `multipart/form-data`

- string

## Response `201`

Collection created successfully

- object
  - `success` boolean
  - `message` string
  - `data` object
    - `id` integer
    - `name` string
    - `created_at` string, date-time

## Other responses

- `400`: Bad request - missing file
- `401`: Unauthorized

---

[API](https://skmtc.dev/birdeatsbug/apis/wdt-rails-api.md) - [All operations](https://skmtc.dev/birdeatsbug/apis/wdt-rails-api/llms.txt) - [OpenAPI document](https://skmtc.dev/birdeatsbug/apis/wdt-rails-api/revisions/cbd06b547b6a?raw)
