跳转到主要内容
PUT
Update a post

请求规范

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

费用与请求规则

每个成功发布的目标单独收费:X 普通帖子 $0.015 USD;正文含链接 $0.200 USD(媒体链接不影响价格);其他平台 $0.01 USD。 同一帖子可以同时发布到 X 和其他平台。 发布失败的目标不收费;某个目标因余额不足或超过请求最高限价被拒付时,仅该目标失败,其他目标继续发布。 创建草稿免费。 已受理或结果未知的目标保持待确认状态;确认发布后,每个目标仅结算一次费用。 发布前可通过报价功能获取总费用。 账户适用价格可能不同;支持报价的接口可按实际请求获取报价。

授权

Authorization
string
header
必填

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

路径参数

postId
string
必填

查询参数

wait
boolean

true waits for the platform before answering (also Prefer: wait). Only changes publishNow requests; the default answers 202 publishing at once.

请求体

application/json
content
string | null
isDraft
boolean | null
mediaItems
(object | null)[] | null
platforms
(object | null)[] | null
publishNow
boolean | null
scheduledFor
string<date-time> | null
timezone
string | null
title
string | null

响应

Success

content
string | null
createdAt
string<date-time> | null
id
string | null
mediaItems
(object | null)[] | null
notice
string | null
platforms
(object | null)[] | null
profileId
string | null
Pattern: ^prf_[0-9A-Za-z]{22}$
scheduledFor
string<date-time> | null
status
string | null
timezone
string | null
title
string | null
updatedAt
string<date-time> | null