Sign in

Add item to collection

documented

Add an item (model/dataset/space/paper) to a collection.

POST /api/collections/{namespace}/{slug}-{id}/itemCollectionsno 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/collections/{{$namespace}}/{{$slug}}-{{$id}}/item" \
  -X POST \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{"item": {"type": "{{$item_type}}", "id": "{{$item_id}}"},"note": "{{$note}}"}'