---
title: "Create favorite"
method: POST
path: "/favorites"
tags: ["Favorites"]
---

# Create favorite

`POST /favorites`

## Request body

- object
  - `favorite` object, required
    - `favoritable_type` 'Place' | 'Lock', required — The favoritable type of the favorite
    - `favoritable_id` integer, required — The favoritable ID of the favorite

## Response `200`

OK

- object
  - `id` integer, required — The ID of the favorite
  - `resource_type` 'Favorite', required — The resource type of the favorite
  - `created_at` string, date-time, required — When the favorite was created
  - `updated_at` string, date-time, required — When the favorite was updated
  - `favoritable_type` 'Place' | 'Lock', required — The favoritable type of the favorite
  - `favoritable_id` integer, required — The favoritable ID of the favorite

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `409` — Conflict
- `422` — Unprocessable Content

---

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