Update Collection
This endpoint allows you to update the metadata and configuration of a Collection. It is typically used to rename a list, update its description, or change its privacy settings (e.g., making a private wishlist public so it can be shared via a link).
You only need to send the fields you wish to change in the request body.
X-API-Key<token>
In: header
Path Parameters
id*string
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X PUT "https://example.com/collections/string" \ -H "Content-Type: application/json" \ -d '{}'{ "type": "success", "code": "string", "status": 0, "message": "string", "data": { "id": "string", "title": "string", "description": "string", "type": "cart", "privacy": "public", "owner": "string", "ownerModel": "User", "participants": [ { "profil": "string", "profilType": "Profil", "role": "owner", "joinedAt": "2019-08-24T14:15:22Z", "invitedByType": "Profil", "invitedBy": null, "permissions": { "canAddItems": false, "canRemoveItems": false, "canModifyItems": false, "canInviteOthers": false, "canModifyCollection": false } } ], "items": [ { "_id": "64f1a2b3c4d5e6f7g8h9i0j1", "item": { "_id": "64f1a2b3c4d5e6f7g8h9i0j2", "name": "Smartphone XYZ", "description": "Latest smartphone model", "productType": "electronics" }, "itemType": "Product", "itemId": "64f1a2b3c4d5e6f7g8h9i0j2", "collectionParent": { "_id": "64f1a2b3c4d5e6f7g8h9i0j3", "title": "My Wishlist", "type": "wishlist", "privacy": "private" }, "collectionId": "64f1a2b3c4d5e6f7g8h9i0j3", "owner": { "_id": "64f1a2b3c4d5e6f7g8h9i0j4", "firstName": "John", "lastName": "Doe", "email": "john.doe@example.com" }, "ownerModel": "Profil", "metadata": { "position": 1, "priority": "high", "rating": 5, "quantity": 1, "addedBy": { "_id": "64f1a2b3c4d5e6f7g8h9i0j4", "firstName": "John", "lastName": "Doe", "email": "john.doe@example.com" }, "addedByType": "Profil", "addedAt": "2024-01-15T10:30:00Z", "tags": [ "electronics", "wishlist" ], "notes": "Really want this phone!" }, "status": "active", "payload": {}, "createdAt": "2024-01-15T10:30:00Z", "updatedAt": "2024-01-15T10:30:00Z" } ], "settings": { "allowDuplicates": false, "maxItems": 1, "autoSort": false, "sortBy": "name", "sortOrder": "asc", "notifyOnItemAdded": true, "notifyOnParticipantJoin": true, "notifyOnChanges": false, "expiresAt": "2019-08-24T14:15:22Z", "autoCleanup": false }, "tags": [ "string" ], "category": "string", "isTemplate": false, "templateCategory": "string", "stats": { "totalItems": 0, "totalValue": 0, "lastActivity": "2019-08-24T14:15:22Z", "popularItems": [ null ], "activityCount": { "daily": 0, "weekly": 0, "monthly": 0 } }, "shareableLink": "http://example.com", "shareStats": { "views": 0, "shares": 0, "likes": 0 }, "payload": {}, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "lastActivityAt": "2019-08-24T14:15:22Z" }}