Skip to main content
POST
Update post metadata

Request contract

  • Method and path: POST /apis/v1/social/posts/{postId}/update-metadata
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/social/posts/{postId}/update-metadata
  • postId: path; required
  • Runtime facts: 99acb5bddbedc8d3352e7c4fef86c3e6d8852c14772bcd18dbcf415237a642bd
Complete OpenAPI definition Effective request and pricing declaration (including authentication and referenced schemas):

Cost and request rules

A request reference price is not currently available; use a request quote where supported. Account-specific pricing and final settlement may differ. Published reference values are not an account-specific quote or a settled charge. For endpoints supporting X-AISA-Cost-Mode: quote, obtain a free quote for your exact request before execution; reconcile the settled cost with response metadata and Usage Logs. USD amounts use 1,000,000 integer micro-USD per dollar.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

postId
string
required

AIsa post ID, or "_" when using direct video ID mode

Body

application/json
platform
enum<string>
required

The platform to update metadata on

Available options:
youtube
accountId
string

One of your social accounts (acc_...).

Pattern: ^acc_[0-9A-Za-z]{22}$
categoryId
string

YouTube video category ID

containsSyntheticMedia
boolean

AI-generated content disclosure. Set true if the video contains synthetic content that could be mistaken for real. YouTube may add a label.

description
string

New video description

madeForKids
boolean

COPPA compliance flag. Set true for child-directed content (restricts comments, notifications, ad targeting).

playlistId
string

YouTube playlist ID to add the video to (e.g. 'PLxxxxxxxxxxxxx'). Use GET /apis/v1/social/accounts/{id}/youtube-playlists to list available playlists. Only playlists owned by the channel are supported.

privacyStatus
enum<string>

Video privacy setting

Available options:
public,
private,
unlisted
tags
string[]

Array of keyword tags (max 500 characters combined for YouTube)

Maximum string length: 100
thumbnailUrl
string<uri>

Public URL of a custom thumbnail image (JPEG, PNG, or GIF, max 50 MB, recommended 1280x720). Works on any video you own, including videos not published through AIsa. The channel must be verified (phone verification) to set custom thumbnails.

Errors:

  • 400 with the reason, no field updated: YouTube refuses the thumbnail (e.g. channel without the custom-thumbnail permission, video not owned by the connected channel), or the image URL cannot be fetched or has an unsupported format or size.
  • 429: YouTube thumbnail rate limit (uploadRateLimitExceeded). Retry later, not immediately, because retries keep the channel over its limit.
  • 500: any other temporary YouTube or network failure; can be retried.
title
string

New video title (max 100 characters for YouTube)

Maximum string length: 100
videoId
string

YouTube video ID (required for direct mode, ignored for post-based mode)

Response

Metadata updated successfully

message
string
success
boolean
updatedFields
string[]
videoId
string

Only present in direct video ID mode