Update collection (rename / publish / sort)

View as Markdown
**What:** Owner-only update for rename, publish/unpublish, and remembered sort. At least one recognised field required. **Auth:** Bearer token required. **Body (JSON, all optional but at least one required):** | Field | Type | Required | Description | Example | |---|---|---|---|---| | name | string | no | New title (trimmed, max 60). Rejected for default lists. | `Favorite Films` | | isPublic | boolean | no | Publish (true) / unpublish (false). Allowed for default lists. | `true` | | sort | string | no | One of: added_desc, added_asc, title_asc, title_desc, year_desc, year_asc. | `year_desc` | **Returns:** `data = card`. Setting a field to its current value is a valid no-op (still 200).

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

{collectionIdstringRequired

Request

This endpoint expects an object.
namestringRequired
sortstringRequired
isPublicbooleanRequired

Response

OK
okboolean
dataobject

Errors

400
Bad Request Error
404
Not Found Error