---
title: "POST /v2/content/update-image"
method: POST
path: "/v2/content/update-image"
tags: ["v2"]
---

# POST /v2/content/update-image

`POST /v2/content/update-image`

## Request

- Base URL: `https://api.inside.ad/api`
- URL: `https://api.inside.ad/api/v2/content/update-image`
- Auth: one of:
  - OAuth 2 (authorization code, authorization URL `https://api.inside.ad/api/oauth/authorize`, token URL `https://api.inside.ad/api/oauth/token`, scopes: `content:write`)
  - API key in header `authorization`

Attaches media to an existing post, or removes it ("fileDeleted": true). Use "fileUrl" after generate_image/generate_video finishes (AI-generated result). Use "fileBase64" + "mimeType" instead when the user gave you their OWN photo/video to use (e.g. sent in this chat) — pass its raw bytes directly, it will be saved and attached as-is.

## Query parameters

- `userId` number, required

## Request body

- object
  - `platform` 'instagram' | 'threads' | 'telegram', required
  - `id` number, required: The content id to update
  - `fileUrl` string, nullable: URL of an already-hosted image/video to attach — typically the result of generate_image/generate_video (AI-generated), or any other URL you already have.
  - `fileBase64` string, nullable: Base64-encoded raw image/video bytes to upload directly. Use this when the user sent you their OWN photo/video (e.g. in the Telegram support chat, resolved via the same file-download path used for vision attachments) and it should become the post's media — NOT an AI-generated one. Requires "mimeType".
  - `mimeType` string, nullable: MIME type of "fileBase64" (e.g. "image/jpeg", "video/mp4"). Required when fileBase64 is set.
  - `fileDeleted` boolean, nullable: Set true to remove the existing media instead of attaching a new one. Mutually exclusive with fileUrl/fileBase64.

## Response `200`

Default Response

- object
  - `success` boolean

---

[API](https://skmtc.dev/inside/apis/inside-ad-api-documentation-v2-ai-optimized.md) · [All operations](https://skmtc.dev/inside/apis/inside-ad-api-documentation-v2-ai-optimized/llms.txt) · [OpenAPI document](https://skmtc.dev/inside/apis/inside-ad-api-documentation-v2-ai-optimized/revisions/79912b433f7f?raw)
