Skip to content

Add Collections API - #455

Merged
const-cloudinary merged 1 commit into
masterfrom
feature/collections-api
Nov 5, 2026
Merged

const-cloudinary merged 1 commit into
masterfrom
feature/collections-api

Conversation

@const-cloudinary

Copy link
Copy Markdown
Member

Add cloudinary.collections to organize assets into collections and share them through public pages.

  • Collections: collections, collection, create_collection, update_collection, delete_collection
  • Assets: collection_assets, add_collection_assets, remove_collection_assets
  • Public pages: collection_public_pages, collection_public_page, create_collection_public_page, update_collection_public_page, delete_collection_public_page

Also in this PR:

  • New exceptions: NotAcceptable (406) and Locked (423). Any other unmapped HTTP status now raises cloudinary.exceptions.Error instead of a plain Exception.
  • Error responses with a top-level message instead of an error object now raise.

Docs: cloudinary/docs/organize-and-share-collections.md, with a runnable example in examples/organize-and-share-collections.py.

Testing

  • Mocked tests in test/test_collections.py cover every method, the error handling, and OAuth requests.
  • Every method, the example, and every doc snippet were run against a live cloud.
  • The full python -m pytest test suite has not been run yet.

🤖 Generated with Claude Code

Add `cloudinary.collections` to organize assets into collections and
share them through public pages.

- Collections: `collections`, `collection`, `create_collection`,
  `update_collection`, `delete_collection`
- Assets: `collection_assets`, `add_collection_assets`,
  `remove_collection_assets`
- Public pages: `collection_public_pages`, `collection_public_page`,
  `create_collection_public_page`, `update_collection_public_page`,
  `delete_collection_public_page`

See `cloudinary/docs/organize-and-share-collections.md`.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@const-cloudinary
const-cloudinary merged commit 889582a into master Nov 5, 2026
16 checks passed
@const-cloudinary
const-cloudinary deleted the feature/collections-api branch November 5, 2026 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant