/v1/communities/{community_id}/hidesAuthHide a post from the actor's feeds ("not interested"). Idempotent. A hard filter — the post drops out of home + discover for that actor only.
Path parameters
community_id*stringSocial community UUID. Must belong to the PAK's workspace.
Headers
Idempotency-KeystringOpaque client-generated string (1-256 chars, `[A-Za-z0-9._:-]`) that makes a retry safe: within 24 h a repeat with the same key and body returns the original response with `Idempotent-Replay: true` instead of running again. Same key with a different body is `409 IDEMPOTENCY_KEY_REUSE`.
Request body
actor_id*string · uuidThe actor hiding the post.
Example: "aaaaaaaa-0000-0000-0000-000000000001"
post_id*string · uuidThe post to hide.
Example: "bbbbbbbb-0000-0000-0000-000000000001"
Response · 201 Post hidden.
created*boolean`true` if the hide was created on this call; `false` on idempotent retry.
Example: true
Example
Request
POST https://social.productcraft.co/v1/communities/{community_id}/hides
Authorization: Bearer YOUR_TOKEN
Content-Type: application/json
{
"actor_id": "aaaaaaaa-0000-0000-0000-000000000001",
"post_id": "bbbbbbbb-0000-0000-0000-000000000001"
}import { Social } from "@productcraft/social";
// Reads PRODUCTCRAFT_API_KEY from the environment
const social = new Social();
const hideResult = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").hides.create({ post_id: "bbbbbbbb-0000-0000-0000-000000000001" });social.community(…).hides.create(params, options?): Social.HideResult
Response
{
"created": true
}