跳转到主要内容
POST
Update post metadata

请求规范

  • 方法与路径: POST /apis/v1/social/posts/{postId}/update-metadata
  • 可用状态: enabled
  • 请求 URL 模板: https://api.aisa.one/apis/v1/social/posts/{postId}/update-metadata
  • postId: path; 必填
完整 OpenAPI 定义 有效请求声明(包括认证和引用的 schema):

费用与请求规则

此操作不另收费。

授权

Authorization
string
header
必填

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

路径参数

postId
string
必填

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

请求体

application/json
platform
enum<string>
必填

The platform to update metadata on

可用选项:
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

可用选项:
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)

响应

Metadata updated successfully

message
string
success
boolean
updatedFields
string[]
videoId
string

Only present in direct video ID mode