---
title: "update_post"
description: "Change a post that is still 'scheduled' (waiting in mixetape): its time, lead, media, caption or metadata (merged; null clears a field). Once it is on the platform, use edit_published_post. Needs the **publish** permission. Also available as the MCP tool `update_post`."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.mixetape.com/llms.txt
> Use this file to discover all available pages before exploring further.

Path: mixetape API › publish

`POST /api/v1/tools/update_post`

Change a post that is still 'scheduled' (waiting in mixetape): its time, lead, media, caption or metadata (merged; null clears a field). Once it is on the platform, use edit_published_post. Needs the **publish** permission. Also available as the MCP tool `update_post`.

## Authentication

- `apiKey`, http, header `Authorization`

## Request body

_Required._

- `update_post.id` (string, required) — mixetape post id (list_posts)
- `update_post.mediaUrl` (string, optional)
- `update_post.caption` (string, optional)
- `update_post.scheduledAt` (string, optional) — ISO 8601 with timezone offset
- `update_post.leadMinutes` (number, optional)
- `update_post.metadata` (any of, optional)
  - any of: `YouTube`, `Facebook`, `Instagram`, `Threads`, `TikTok`, `Pinterest`

## Example request

```json
{
  "id": "string",
  "mediaUrl": "string",
  "caption": "string",
  "scheduledAt": "string",
  "leadMinutes": 0,
  "metadata": {
    "title": "string",
    "description": "string",
    "category": "string",
    "tags": [
      "string"
    ],
    "privacyStatus": "public",
    "madeForKids": true,
    "notifySubscribers": true,
    "defaultLanguage": "string",
    "localizations": {
      "property1": {
        "title": "string",
        "description": "string"
      },
      "property2": {
        "title": "string",
        "description": "string"
      }
    },
    "thumbnailUrl": "string",
    "playlistIds": [
      "string"
    ],
    "captions": [
      {
        "language": "string",
        "name": "string",
        "url": "string"
      }
    ],
    "firstComment": "string"
  }
}
```

## Code samples

### cURL

```curl
curl --request POST \
  --url https://mixetape.com/api/v1/tools/update_post \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "id": "string",
  "mediaUrl": "string",
  "caption": "string",
  "scheduledAt": "string",
  "leadMinutes": 0,
  "metadata": {
    "title": "string",
    "description": "string",
    "category": "string",
    "tags": [
      "string"
    ],
    "privacyStatus": "public",
    "madeForKids": true,
    "notifySubscribers": true,
    "defaultLanguage": "string",
    "localizations": {
      "property1": {
        "title": "string",
        "description": "string"
      },
      "property2": {
        "title": "string",
        "description": "string"
      }
    },
    "thumbnailUrl": "string",
    "playlistIds": [
      "string"
    ],
    "captions": [
      {
        "language": "string",
        "name": "string",
        "url": "string"
      }
    ],
    "firstComment": "string"
  }
}
'
```

### TypeScript

```typescript
const url = 'https://mixetape.com/api/v1/tools/update_post';
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json', Authorization: 'Bearer <token>'},
  body: JSON.stringify({
    id: 'string',
    mediaUrl: 'string',
    caption: 'string',
    scheduledAt: 'string',
    leadMinutes: 0,
    metadata: {
      title: 'string',
      description: 'string',
      category: 'string',
      tags: ['string'],
      privacyStatus: 'public',
      madeForKids: true,
      notifySubscribers: true,
      defaultLanguage: 'string',
      localizations: {
        property1: {title: 'string', description: 'string'},
        property2: {title: 'string', description: 'string'}
      },
      thumbnailUrl: 'string',
      playlistIds: ['string'],
      captions: [{language: 'string', name: 'string', url: 'string'}],
      firstComment: 'string'
    }
  })
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://mixetape.com/api/v1/tools/update_post"

payload = {
    "id": "string",
    "mediaUrl": "string",
    "caption": "string",
    "scheduledAt": "string",
    "leadMinutes": 0,
    "metadata": {
        "title": "string",
        "description": "string",
        "category": "string",
        "tags": ["string"],
        "privacyStatus": "public",
        "madeForKids": True,
        "notifySubscribers": True,
        "defaultLanguage": "string",
        "localizations": {
            "property1": {
                "title": "string",
                "description": "string"
            },
            "property2": {
                "title": "string",
                "description": "string"
            }
        },
        "thumbnailUrl": "string",
        "playlistIds": ["string"],
        "captions": [
            {
                "language": "string",
                "name": "string",
                "url": "string"
            }
        ],
        "firstComment": "string"
    }
}
headers = {
    "Content-Type": "application/json",
    "Authorization": "Bearer <token>"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
```

## Responses

### 200

The tool's result.

#### Example

```json
{
  "result": null
}
```

- `update_post.response.200.result` (unknown, required) — What the tool returns

### 400

The request is invalid; `error` says why.

#### Example

```json
{
  "error": "string"
}
```

- `update_post.response.400.error` (string, required) — What went wrong, in plain words

### 401

No valid API key.

#### Example

```json
{
  "error": "string"
}
```

- `update_post.response.401.error` (string, required) — What went wrong, in plain words

### 403

The key lacks the permission this needs.

#### Example

```json
{
  "error": "string"
}
```

- `update_post.response.403.error` (string, required) — What went wrong, in plain words

### 404

Not found, or not yours.

#### Example

```json
{
  "error": "string"
}
```

- `update_post.response.404.error` (string, required) — What went wrong, in plain words


Source: https://docs.mixetape.com/api/publish/update_post/index.md
