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

# POST /personal/users/{userId}/bookmarks

`POST /personal/users/{userId}/bookmarks`

Create new bookmark for user

## Path parameters

- `userId` 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 `201`

Empty response, http status is relevant

## 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
- `409` — Conflict. It can be triggered either when trying to create a public bookmark that is already present or a bookmark with the location is already present for the user

---

[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/versions/479a3dd64e1f/schema)
