---
title: "Updated collection"
method: PATCH
path: "/collection/{collectionId}"
tags: ["collection"]
---

# Updated collection

`PATCH /collection/{collectionId}`

## Path parameters

- `collectionId` number, required

## Request body

- Collection
  - `id` string, collectionId, required
  - `name` string, required
  - `content` string[]
  - `public` boolean
  - `expiredOn` string, date-time
  - `query` object[] — Kryteria wyszukiwania
    - `key` 'institution' | 'tags' | 'dictionaryId'
    - `value` string

## Response `200`

Expected response to a valid request

- Collection
  - `id` string, collectionId, required
  - `name` string, required
  - `content` string[]
  - `public` boolean
  - `expiredOn` string, date-time
  - `query` object[] — Kryteria wyszukiwania
    - `key` 'institution' | 'tags' | 'dictionaryId'
    - `value` string

## Other responses

- `default` — unexpected error

---

[API](https://skmtc.dev/watchdogpolska/apis/small-eod.md) · [All operations](https://skmtc.dev/watchdogpolska/apis/small-eod/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/watchdogpolska/small-eod/revisions/6da2ffa964ee/schema)
