# POST /social/posts/:post_id/targets/:target_id/visibility

**Resource:** [SOCIAL](./social.md)  
**MCP tool:** `set_youtube_video_visibility`  
**Scopes:** `social:write`  
**Write operation:** yes

Change a posted YouTube video to private, unlisted or public. Only the visibility changes; the rest of the settings stay as they are. YouTube can refuse (for example while the app is locked to private uploads or the channel needs wider permission) and the reply then gives its exact error. With the approval tier it waits in Approvals.

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `post_id` | path | string | yes | The social post id. |
| `target_id` | path | string | yes | The YouTube account result (target id from get_social_post). |
| `visibility` | body | string | yes | private, unlisted or public. |
| `require_approval` | body | boolean | no | Optional. Set true to route this write into the approval queue for human review instead of executing it immediately (returns 202 + an approval_id). Works even when your key/token has permission to execute directly. |

## Request example

```bash
curl -X POST   "https://api.trustpager.com/functions/v1/api/v1/social/posts/:post_id/targets/:target_id/visibility"   -H "Authorization: Bearer YOUR_API_KEY"   -H "Content-Type: application/json"   -d '{"visibility":"...","require_approval":"..."}'
```

---
Base URL: `https://api.trustpager.com/functions/v1/api/v1` — Auth: `Authorization: Bearer YOUR_API_KEY`