## Set the collections of a type `PUT https://getkollek.com/api/collection-types/{collectionType}/collections` Set which collections the type applies to. The list you send replaces the previous one entirely. IDs of collections that do not belong to your account are ignored. **Permissions:** Owners and editors. Viewers get a 404 response. ### Path parameters - `collectionType` (integer, required): The ID of the collection type. ### Body parameters - `collection_ids` (array of integers, optional): The IDs of the collections the type applies to. Send an empty array to unlink the type from every collection. **Returns:** The collection_type object. ### Example request ```bash curl https://getkollek.com/api/collection-types/1/collections \ -X PUT \ -H "Authorization: Bearer $API_KEY" \ -H "Accept: application/json" \ -H "Content-Type: application/json" \ -d '{ "collection_ids": [ 1, 2 ] }' ``` ### Example response `Status: 200` ```json { "data": { "type": "collection_type", "id": "1", "attributes": { "name": "Comics", "color": "#fb923c", "created_at": 1752537600, "updated_at": 1752537600 }, "links": { "self": "https://getkollek.com/api/collection-types/1" } } } ```