# PUT /social/posts/:post_id/media

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

Change the pictures or video of a post for the accounts that have not posted it yet: waiting, waiting for approval, or failed. Use it to fix an account that failed for want of a picture (for example Instagram needs a picture or video), then retry that account with retry_social_post_account. Accounts that already posted keep what they posted (a posted picture or video cannot be swapped on the networks). Each network's rules are checked: YouTube needs a video, Instagram a picture or video, LinkedIn takes pictures only. affects lists the accounts the change applies to. Refused while the post is posting. With the approval tier it waits in Approvals.

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `post_id` | path | string | yes | The social post id. |
| `media_file_ids` | body | array | yes | The pictures or video the post should carry: ids of public files in the workspace files, in order (up to 10). An empty list removes them all. |
| `thumbnail_file_id` | body | string | no | YouTube only: a picture file (under 2 MB) for the custom thumbnail. Send an empty string to remove it. |
| `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 PUT   "https://api.trustpager.com/functions/v1/api/v1/social/posts/:post_id/media"   -H "Authorization: Bearer YOUR_API_KEY"   -H "Content-Type: application/json"   -d '{"media_file_ids":"...","thumbnail_file_id":"...","require_approval":"..."}'
```

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