/v1/communities/{community_id}/collections/{collection_id}/items/{post_id}AuthRemove a post from a collection (owner only).
Path parameters
community_id*stringSocial community UUID.
collection_id*string · uuidId of the collection.
post_id*string · uuidId of the post.
Query parameters
actor_idstring · uuidThe acting actor; must be the collection owner. Required unless the request sends the deprecated JSON body `{ caller_actor_id }`.
Request body
caller_actor_idstring · uuidDeprecated: pass `?actor_id=` instead. The caller, who must be the owner.
Example: "aaaaaaaa-0000-0000-0000-000000000001"
Response · 204
Item removed.
Example
Request
DELETE https://social.productcraft.co/v1/communities/{community_id}/collections/{collection_id}/items/{post_id}
Authorization: Bearer YOUR_TOKEN
Content-Type: application/json
{
"caller_actor_id": "aaaaaaaa-0000-0000-0000-000000000001"
}import { Social } from "@productcraft/social";
// Reads PRODUCTCRAFT_API_KEY from the environment
const social = new Social();
await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").collections.items.delete("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", { caller_actor_id: "aaaaaaaa-0000-0000-0000-000000000001" });social.community(…).collections.items.delete(collectionId, postId, params?, options?): void