---
title: "POST /v1/console/model-square/favorites"
method: POST
path: "/v1/console/model-square/favorites"
tags: ["ConsoleModelSquareService"]
---

# POST /v1/console/model-square/favorites

`POST /v1/console/model-square/favorites`

AddFavorite 新增收藏（若已软删则恢复）。
 AddFavorite adds a favorite (restores if previously soft-deleted).

## Request body

- ModelsquareV1AddFavoriteRequest — AddFavoriteRequest 新增收藏请求。/ AddFavoriteRequest adds a favorite.
  - `modelId` integer

## Response `200`

OK

- ModelsquareV1AddFavoriteReply — AddFavoriteReply 新增收藏响应。/ AddFavoriteReply is the add-favorite reply.
  - `favoriteAt` string, date-time
  - `favoriteCount` integer
  - `favorited` boolean
  - `modelId` integer

---

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