Skip to main content
PUT
Update a post

Request contract

  • Method and path: PUT /apis/v1/social/posts/{postId}
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/social/posts/{postId}
  • wait: query; optional
  • postId: path; required
Complete OpenAPI definition Effective request declaration (including authentication and referenced schemas):

Cost and request rules

Each platform target is charged separately, only once it is published: an X post costs $0.015, or $0.200 when its effective text contains a URL (media URLs do not select the text-URL price); a post on any other platform costs $0.01. One post may target X together with other platforms. A failed target is not charged, and a target whose own charge is refused (insufficient balance or the request’s maximum price) fails alone while the other targets publish. Draft creation is free. Accepted or unknown responses remain pending; only verified native publication settles each target’s charge once. Send X-AISA-Cost-Mode: quote to get the total before publishing. Your account price may differ; use a request quote where supported.

Authorizations

Authorization
string
header
required

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

Path Parameters

postId
string
required

Query Parameters

wait
boolean

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

Body

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

Response

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