Update collection (rename / publish / sort)
Update collection (rename / publish / sort)
**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
collectionId
Collection id.
Request
This endpoint expects an object.
name
sort
isPublic
Response
OK
ok
data
Errors
400
Bad Request Error
404
Not Found Error

