Sign in

Create resource group

documented

Create a new resource group in an organization.

POST /api/organizations/{name}/resource-groupsOrganizationsno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl 'https://huggingface.co/api/organizations/{{$name}}/resource-groups' \
  -X POST \
  -H 'Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}' \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json' \
  -d '{"name": "{{$rg_name}}", "description": "{{$rg_description}}", "users": [{"user": "{{$username}}", "role": "{{$user_role}}"}], "repos": [{"type": "{{$repo_type}}", "name": "{{$repo_name}}"}], "autoJoin": {"enabled": {{$auto_join_enabled}}, "role": "{{$auto_join_role}}"}}'
Create resource group · Hugging Face · OpenIntegrations