---
title: "Create a new bookmark."
method: PUT
path: "/user/bookmarks"
tags: ["User"]
---

# Create a new bookmark.

`PUT /user/bookmarks`

Creates a new bookmark for the current user.

## Request body

- ProtobufPutBookmarkRequest
  - `description` string
  - `hours` integer
  - `minutes` integer
  - `seconds` integer
  - `streamID` integer

## Response `200`

A successful response.

- ProtobufPutBookmarkResponse
  - `bookmark` ProtobufBookmark
    - `id` integer
    - `description` string
    - `hours` integer
    - `minutes` integer
    - `seconds` integer
    - `userID` integer
    - `streamID` integer

## Other responses

- `400` — **[3 INVALID_ARGUMENT]** *Bad request.* **Returned in case of:** - Missing courseID field in request message.
- `401` — **[16 UNAUTHENTICATED]** *Could not authorize the operation.* **Returned in case of:** - Missing JWT cookie header - Crypto/rsa: verification error (invalid jwt) - JWT cookie not found
- `403` — **[7 PERMISSION_DENIED]** *Access denied.* **Returned in case of:** - User is not logged in (jwt not set) and tries to access stream with course visibility "loggedIn" or "enrolled" - User is logged in, but tries to access stream with course visibility "enrolled" without being enrolled in the course - User tries to access stream with course visibility "private"
- `404` — **[5 NOT_FOUND]** *Could not find entity.* **Returned in case of:** - Non-existing course

---

[API](https://skmtc.dev/tum-dev/apis/gocast-api.md) · [All operations](https://skmtc.dev/tum-dev/apis/gocast-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/tum-dev/gocast-api/revisions/18ce08adf685/schema)
