---
title: "Adds a product to a custom collection."
method: POST
path: "/admin/collects.json"
tags: ["Collect"]
---

# Adds a product to a custom collection.

`POST /admin/collects.json`

Create a new link between an existing product and an existing collection.

## Request body

- CreateCollectRequestSwagger
  - `collect` CreateCollectResponse
    - `collection_id` integer — The ID of the custom collection containing the product.
    - `product_id` integer — The unique numeric identifier for the product in the custom collection.

## Response `200`

OK

- CreateCollectResponseSwagger
  - `collect` Collect
    - `collection_id` integer — The ID of the custom collection containing the product.
    - `featured` boolean — Whether the collect is featured.
    - `id` integer — A unique numeric identifier for the collect.
    - `position` number — The position of this product in a manually sorted custom collection. The first position is 1. This value is applied only when the custom collection is sorted manually.
    - `product_id` integer — The unique numeric identifier for the product in the custom collection.
    - `sort_value` string — This is the same value as position but padded with leading zeroes to make it alphanumeric-sortable. This value is applied only when the custom collection is sorted manually.

---

[API](https://skmtc.net/shopbase/apis/shopbase-internal-api.md) · [All operations](https://skmtc.net/shopbase/apis/shopbase-internal-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/shopbase/shopbase-internal-api/revisions/353ccde6240d/schema)
