PixelDance
V1AssetsBatch favorite

Batch add favorites

POST
/v1/assets/batch-favorite

Authorization

cookieAuth
better-auth.session_token<token>

Session cookie set by Better Auth. Login via the app to obtain.

In: cookie

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "http://localhost:3002/v1/assets/batch-favorite" \  -H "Content-Type: application/json" \  -d '{    "assetIds": [      "string"    ]  }'
{
  "success": true,
  "revalidate": [
    "string"
  ]
}