---
title: "Add favorite"
method: POST
path: "/v2/users/{userId}/favorites"
tags: ["Users"]
---

# Add favorite

`POST /v2/users/{userId}/favorites`

Add a favorite item for a user.

## Request body

- AddFavoriteRequest — Request to add a favorite item for a user.
  - `type` string, required — The type of favorite (e.g. "company", "legal_entity", "trip").
  - `params` object — Key-value pairs of parameters for the favorite.
  - `displayName` string, required — Display name for the favorite item.

## Response `200`

OK

- AddFavoriteResponse — Response after adding a favorite item.
  - `favorite` FavoriteItem — A single favorite item.
    - `favoriteId` string — Unique identifier for the favorite item.
    - `type` string — The type of favorite.
    - `params` object — Key-value pairs of parameters for the favorite.
    - `displayName` string — Display name for the favorite item.
    - `createdAt` string, date-time — Timestamp when the favorite was created.

## Other responses

- `401` — Unauthorized
- `403` — Forbidden

---

[API](https://skmtc.net/spotnana/apis/user-management-api.md) · [All operations](https://skmtc.net/spotnana/apis/user-management-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/spotnana/user-management-api/versions/920fb84cbf70/schema)
