---
title: "Favorite a document"
method: POST
path: "/v2/favorites"
tags: ["Favorites"]
---

# Favorite a document

`POST /v2/favorites`

## Request

- Base URL: `https://api.sigmacomputing.com`
- URL: `https://api.sigmacomputing.com/v2/favorites`
- Auth: HTTP bearer

Favorite a folder or document for a specific user.

  ### Usage notes
  - Retrieve the **memberId** by calling the [/v2/members](https://help.sigmacomputing.com/reference/list-members) endpoint.
  - Retrieve the **inodeId** by calling the [/v2/files](https://help.sigmacomputing.com/reference/list-files) endpoint and using the `id` included in the response.

## Request body

- object
  - `memberId` string, required: Unique identifier of the member.
  - `inodeId` string, required: Unique identifier of the document or folder.

## Response `200`

The response body.

- FavoritesAddFavoriteResponse200

---

[API](https://skmtc.dev/sigmacomputing/apis/sigma-rest-api.md) - [All operations](https://skmtc.dev/sigmacomputing/apis/sigma-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/sigmacomputing/apis/sigma-rest-api/revisions/fb6036208c49?raw)
