---
title: "Add bookmarks/stars info"
method: PUT
path: "/v2/_zot/ext/userprefs"
---

# Add bookmarks/stars info

`PUT /v2/_zot/ext/userprefs`

## Request

- The document declares no server URL.
- Auth: none declared
- TypeScript: <https://skmtc.dev/project-zot/apis/open-container-initiative-distribution-specification/docs/v2/_zot/ext/userprefs/put.ts> (a function with typed inputs; its response is checked against the schema)

Add bookmarks/stars info

## Query parameters

- `action` 'toggleBookmark' | 'toggleStar', required
- `repo` string, required

## Response `200`

ok

- string

## Other responses

- `400`: bad request".
- `403`: forbidden
- `404`: not found
- `500`: internal server error

## Changes

- **2023-06-19** `387ec2e44d46`: 1 info
  - endpoint added
- **2021-10-21** `81b68c5e4fde`: 1 breaking
  - api path removed without deprecation

[Operation history](https://skmtc.dev/project-zot/apis/open-container-initiative-distribution-specification/changes/v2/_zot/ext/userprefs/put.md)

---

[API](https://skmtc.dev/project-zot/apis/open-container-initiative-distribution-specification.md) - [All operations](https://skmtc.dev/project-zot/apis/open-container-initiative-distribution-specification/llms.txt) - [OpenAPI document](https://skmtc.dev/project-zot/apis/open-container-initiative-distribution-specification/revisions/7937343ee83f?raw)
