Posts & scheduling
Update a post using its current version
Use this endpoint from your own integration, with the same account permissions and safeguards as the app.
Request
PUT
/api/v1/posts/{id}Example requestcURL
curl -X PUT 'https://postlift.io/api/v1/posts/{id}' \
-H "Authorization: Bearer $POSTLIFT_API_KEY" \
-H 'Content-Type: application/json' \
--data '{
"xAccountId": null,
"items": [
{
"text": "A small release beats a perfect plan.",
"mediaIds": []
}
],
"scheduledAt": null,
"timezone": "UTC",
"linkInReply": false,
"aiAssisted": false,
"publishNow": false,
"version": 1
}'Replace path placeholders with your Postlift resource IDs. Example timestamps must be replaced with a future time; preserve the same timestamp when retrying the same operation.
Parameters
| Name | Location | Description |
|---|---|---|
idrequired | path | Postlift resource ID belonging to the API key owner. |
Request body
Send JSON with Content-Type: application/json.
| Field | Type & constraints | ||||||
|---|---|---|---|---|---|---|---|
xAccountIdoptional | string | nullDefault: null. | ||||||
itemsrequired | object[]Min. items: 1. Max. items: 20.Nested fields ↓
| ||||||
scheduledAtoptional | integer | nullDefault: null. | ||||||
timezoneoptional | stringDefault: "UTC". Max. characters: 64. | ||||||
linkInReplyoptional | booleanDeprecated; must be false. Links are not supported. Default: false. | ||||||
aiAssistedoptional | booleanDefault: false. | ||||||
publishNowoptional | booleanDefault: false. | ||||||
versionrequired | integerMaximum: 9007199254740991. |
View JSON schema
{
"type": "object",
"properties": {
"xAccountId": {
"default": null,
"anyOf": [
{
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
{
"type": "null"
}
]
},
"items": {
"minItems": 1,
"maxItems": 20,
"type": "array",
"items": {
"type": "object",
"properties": {
"text": {
"type": "string",
"maxLength": 10000,
"description": "Plain text only; URLs and domain addresses are not allowed."
},
"mediaIds": {
"default": [],
"maxItems": 4,
"type": "array",
"items": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
}
}
},
"required": [
"text"
],
"additionalProperties": false
}
},
"scheduledAt": {
"default": null,
"anyOf": [
{
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"timezone": {
"default": "UTC",
"type": "string",
"maxLength": 64
},
"linkInReply": {
"default": false,
"description": "Deprecated; must be false. Links are not supported.",
"type": "boolean"
},
"aiAssisted": {
"default": false,
"type": "boolean"
},
"publishNow": {
"default": false,
"type": "boolean"
},
"version": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"items",
"version"
],
"additionalProperties": false
}Response
200 Successful operation.
| Field | Type & constraints |
|---|---|
postrequired | Post ↗ |
View JSON schema
{
"type": "object",
"properties": {
"post": {
"$ref": "#/components/schemas/Post"
}
},
"required": [
"post"
],
"additionalProperties": true
}Errors & retries
Failures use a stable error code and request ID. Check the current resource version or request status before retrying a write.
| Status | Meaning |
|---|---|
400 | Invalid input or Jev rejection |
401 | Invalid, expired or revoked API key |
402 | Plan, publishing quota or AI credit requirement |
403 | Missing scope |
404 | Resource not found or not owned |
409 | Version conflict, missing voice or duplicate AI operation |
413 | Payload too large |
429 | Rate or concurrency limit |
500 | Internal error |
502 | Upstream failure; inspect operation status |
503 | Service or review unavailable |