collections

Create a collection

Changed on
post/api/collections

Request

  • Base URL: https://huggingface.co
  • URL: https://huggingface.co/api/collections
  • Auth: HTTP bearer

Request body

titlestring required
descriptionstring
namespacestring required
privateboolean

If not provided, the collection will be public. This field will respect the organization's visibility setting.

resourceGroupIdstring

Assign the collection to a resource group of the owning organization. Only valid for organization-owned collections.

Response

The created collection

slugstring required
titlestring required
descriptionstring
lastUpdatedstring date-time required
positionnumber required
theme'orange' | 'blue' | 'green' | 'purple' | 'pink' | 'indigo' required
privateboolean required
upvotesnumber required
shareUrlstring required
isUpvotedByUserboolean required

Changes

    • info

      added subschema #2 subschema #3 to the / response property anyOf list for the response status

    • info

      removed subschema #2 subschema #3 from the / response property anyOf list for the response status

    • warning

      added the new agentenv enum value to the ///// response property for the response status