---
title: "PUT /personal/users/{userId}/bookmarks/{bookmarkId}"
method: PUT
path: "/personal/users/{userId}/bookmarks/{bookmarkId}"
tags: ["personal-bookmarks"]
---

# PUT /personal/users/{userId}/bookmarks/{bookmarkId}

`PUT /personal/users/{userId}/bookmarks/{bookmarkId}`

(full) update existing bookmark of user

## Path parameters

- `userId` string, required
- `bookmarkId` string, required

## Request body

- Bookmark
  - `_id` string
  - `name` string, required
  - `location` string, required
  - `language` string, required
  - `tags` string[], required
  - `description` string
  - `descriptionHtml` string
  - `updatedAt` string, date-time
  - `createdAt` string, date-time
  - `lastAccessedAt` string, date-time
  - `publishedOn` string, date
  - `public` boolean
  - `userId` string, required
  - `likeCount` number
  - `sourceCodeURL` string
  - `ownerVisitCount` number
  - `youtubeVideoId` string
  - `stackoverflowQuestionId` string

## Response `200`

OK when operation successful and updated bookmark in body

- Bookmark
  - `_id` string
  - `name` string, required
  - `location` string, required
  - `language` string, required
  - `tags` string[], required
  - `description` string
  - `descriptionHtml` string
  - `updatedAt` string, date-time
  - `createdAt` string, date-time
  - `lastAccessedAt` string, date-time
  - `publishedOn` string, date
  - `public` boolean
  - `userId` string, required
  - `likeCount` number
  - `sourceCodeURL` string
  - `ownerVisitCount` number
  - `youtubeVideoId` string
  - `stackoverflowQuestionId` string

## Other responses

- `400` — Bad request, validation errors
- `401` — unauthorized (you need to have a valid token) and userId must match the subject in token
- `403` — Access token is missing or invalid
- `404` — Resource not found
- `500` — internal server error, when unknown server error is catched

---

[API](https://skmtc.net/codeverdotdev/apis/codever-api.md) · [All operations](https://skmtc.net/codeverdotdev/apis/codever-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/codeverdotdev/codever-api/revisions/479a3dd64e1f/schema)
