跳转到主要内容
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; 必填
  • Runtime 事实版本: 99acb5bddbedc8d3352e7c4fef86c3e6d8852c14772bcd18dbcf415237a642bd
完整 OpenAPI 定义 有效请求与价格声明(包括认证和引用的 schema):

费用与请求规则

当前未提供请求参考价格;请使用接口支持的报价功能确认费用。 最终费用以账户适用价格及实际结算为准。 公开参考值不是你的账户报价或最终扣费。对于支持 X-AISA-Cost-Mode: quote 的接口,执行前请针对完整请求获取免费报价;执行后通过响应费用元数据和 Usage Logs 核对结算费用。1 USD 等于 1,000,000 个整数 micro-USD。

授权

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