buckets
post/api/buckets/{namespace}/{repo}

Request

  • Base URL: https://huggingface.co
  • URL: https://huggingface.co/api/buckets/{namespace}/{repo}
  • Auth: HTTP bearer

Path parameters

namespacestring required
repostring required

Request body

privateboolean nullable

Bucket visibility. Defaults to public. Cannot be specified along with visibility.

visibility'private' | 'public'

Bucket visibility. Cannot be specified along with private.

resourceGroupIdstring
region'us' | 'eu'

The region where the bucket is hosted.

descriptionstring

Free-text description.

Response

Bucket created, url is given

urlstring required
namestring required
idstring required

A hex string of 24 characters representing an ObjectId.

Changes