Skip to main content
POST
/
api
/
collections
/
{id}
/
repost
Toggle Collection Repost
curl --request POST \
  --url https://api.example.com/api/collections/{id}/repost

Authentication

Requires authentication via session cookie.

Path Parameters

ParameterTypeDescription
idUUIDThe collection ID

Behavior

  • If not reposted: creates a collection_reposts record.
  • If already reposted: deletes the record (unrepost).

Response

{
  "message": "Collection reposted",
  "isReposted": true
}

Error Responses

StatusCodeDescription
401UNAUTHORIZEDNot authenticated
404NOT_FOUNDCollection not found or deleted