spaces

Add resource group

Changed on

Add the repository to a resource group

post/api/spaces/{namespace}/{repo}/resource-group

Request

  • Base URL: https://huggingface.co
  • URL: https://huggingface.co/api/spaces/{namespace}/{repo}/resource-group
  • Auth: HTTP bearer

Path parameters

namespacestring required
repostring required

Request body

resourceGroupIdstring nullable required

The resource group to add the repository to, if null, the repository will be removed from the resource group

Response

Minimal information about the repository

namestring required
type'dataset' | 'model' | 'space' | 'bucket' | 'kernel' | 'container' required
privateboolean required
addedBystring required

Changes

    • warning

      added the new container enum value to the response property for the response status

    • warning

      changed the pattern of the request property / from ^[0-9a-f]{24}$ to ^[0-9a-fA-F]{24}$