Hugging Face Transformers collections API
Use Collections to group repositories from the Hub (Models, Datasets, Spaces and Papers) on a dedicated page. You can learn more about it in the Collections [guide](https://huggingface.co/docs/hub/collections). Collections can also be managed using the Python client (see [guide](https://huggingface.co/docs/huggingface_hub/main/en/guides/collections)).
GET
/api/collections/{namespace}/{slug}-{id}
Get a collection
PATCH
/api/collections/{namespace}/{slug}-{id}
Update a collection
DELETE
/api/collections/{namespace}/{slug}-{id}
Delete a collection
GET
/api/collections/{namespace}/{slug}
Get a collection
PATCH
/api/collections/{namespace}/{slug}
Update a collection
DELETE
/api/collections/{namespace}/{slug}
Delete a collection
POST
/api/collections/{namespace}/{slug}-{id}/items
Add item
POST
/api/collections/{namespace}/{slug}/items
Add item
POST
/api/collections/{namespace}/{slug}-{id}/items/batch
Batch update items
POST
/api/collections/{namespace}/{slug}/items/batch
Batch update items
DELETE
/api/collections/{namespace}/{slug}-{id}/items/{itemId}
Delete item
DELETE
/api/collections/{namespace}/{slug}/items/{slug}
Delete item
POST
/api/collections
Create a collection
GET
/api/collections
Get collections