---
title: "Toggle Favourite"
method: POST
path: "/videos/toggle-favourite"
tags: ["Videos"]
---

# Toggle Favourite

`POST /videos/toggle-favourite`

## Request

- Base URL: `http://localhost:52123`
- URL: `http://localhost:52123/videos/toggle-favourite`
- Auth: none declared
- TypeScript: <https://skmtc.dev/aossie-org/apis/pictopy/docs/videos/toggle-favourite/post.ts> (a function with typed inputs; its response is checked against the schema)

Toggle the favorite status of a video.

## Request body

- AppRoutesVideosToggleFavouriteRequest
  - `video_id` string, required

## Response `200`

Successful Response

- ToggleFavouriteResponse
  - `success` boolean, required
  - `video_id` string, required
  - `isFavourite` boolean, required

## Other responses

- `404`: Not Found
- `422`: Validation Error
- `500`: Internal Server Error

## Changes

- **2026-07-21** `e627e1e7f819`: 1 breaking, 5 info
  - the response's body type changed from no type to `object` for status `200`
  - added the non-success response with the status `404`
  - added the non-success response with the status `500`
  - added the required property `isFavourite` to the response with the `200` status
  - …2 more
- **2026-07-21** `d5bfdfe3c1ed`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/aossie-org/apis/pictopy/changes/videos/toggle-favourite/post.md)

---

[API](https://skmtc.dev/aossie-org/apis/pictopy.md) - [All operations](https://skmtc.dev/aossie-org/apis/pictopy/llms.txt) - [OpenAPI document](https://skmtc.dev/aossie-org/apis/pictopy/revisions/9fe895216588?raw)
