curl --request PATCH \
--url https://api.social-api.ai/v1/posts/{post_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data @- <<EOF
{
"first_comment": "<string>",
"hidden": false,
"media": [
{
"source": "550e8400-e29b-41d4-a716-446655440000",
"source_type": "media_id",
"type": "image"
}
],
"media_ids": [
"<string>"
],
"platform_data": {},
"queue_id": "que_01J9Z8Y7X6W5V4T3S2R1Q0P9N8",
"scheduled_at": "2026-04-02T14:00:00Z",
"segments": [
{
"text": "And here's the second post in the thread.",
"media": [
{
"source": "550e8400-e29b-41d4-a716-446655440000",
"source_type": "media_id",
"type": "image"
}
],
"media_ids": [
"<string>"
]
}
],
"skip_validation": false,
"targets": [
{
"account_id": "acc_01HZ9X3Q4R5M6N7P8V2K0W1J",
"board_id": "8828",
"first_comment": "<string>",
"media": [
{
"source": "550e8400-e29b-41d4-a716-446655440000",
"source_type": "media_id",
"type": "image"
}
],
"media_ids": [
"<string>"
],
"page_id": "sapi_page_01JRQX...",
"platform_data": {},
"scheduled_at": "2026-04-01T10:00:00Z",
"text": "Platform-specific version of the post",
"title": "Custom title for LinkedIn",
"visibility": "public"
}
],
"text": "Updated post content",
"title": "Updated Title",
"visibility": "public"
}
EOFconst options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
first_comment: '<string>',
hidden: false,
media: [
{
source: '550e8400-e29b-41d4-a716-446655440000',
source_type: 'media_id',
type: 'image'
}
],
media_ids: ['<string>'],
platform_data: {},
queue_id: 'que_01J9Z8Y7X6W5V4T3S2R1Q0P9N8',
scheduled_at: '2026-04-02T14:00:00Z',
segments: [
{
text: 'And here\'s the second post in the thread.',
media: [
{
source: '550e8400-e29b-41d4-a716-446655440000',
source_type: 'media_id',
type: 'image'
}
],
media_ids: ['<string>']
}
],
skip_validation: false,
targets: [
{
account_id: 'acc_01HZ9X3Q4R5M6N7P8V2K0W1J',
board_id: '8828',
first_comment: '<string>',
media: [
{
source: '550e8400-e29b-41d4-a716-446655440000',
source_type: 'media_id',
type: 'image'
}
],
media_ids: ['<string>'],
page_id: 'sapi_page_01JRQX...',
platform_data: {},
scheduled_at: '2026-04-01T10:00:00Z',
text: 'Platform-specific version of the post',
title: 'Custom title for LinkedIn',
visibility: 'public'
}
],
text: 'Updated post content',
title: 'Updated Title',
visibility: 'public'
})
};
fetch('https://api.social-api.ai/v1/posts/{post_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.social-api.ai/v1/posts/{post_id}"
payload = {
"first_comment": "<string>",
"hidden": False,
"media": [
{
"source": "550e8400-e29b-41d4-a716-446655440000",
"source_type": "media_id",
"type": "image"
}
],
"media_ids": ["<string>"],
"platform_data": {},
"queue_id": "que_01J9Z8Y7X6W5V4T3S2R1Q0P9N8",
"scheduled_at": "2026-04-02T14:00:00Z",
"segments": [
{
"text": "And here's the second post in the thread.",
"media": [
{
"source": "550e8400-e29b-41d4-a716-446655440000",
"source_type": "media_id",
"type": "image"
}
],
"media_ids": ["<string>"]
}
],
"skip_validation": False,
"targets": [
{
"account_id": "acc_01HZ9X3Q4R5M6N7P8V2K0W1J",
"board_id": "8828",
"first_comment": "<string>",
"media": [
{
"source": "550e8400-e29b-41d4-a716-446655440000",
"source_type": "media_id",
"type": "image"
}
],
"media_ids": ["<string>"],
"page_id": "sapi_page_01JRQX...",
"platform_data": {},
"scheduled_at": "2026-04-01T10:00:00Z",
"text": "Platform-specific version of the post",
"title": "Custom title for LinkedIn",
"visibility": "public"
}
],
"text": "Updated post content",
"title": "Updated Title",
"visibility": "public"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"created_at": "2026-03-14T09:00:00Z",
"hidden": false,
"id": "p_01HZ9X3Q4R5M6N7P8V2K0W1J",
"queue_id": "que_01J9Z8Y7X6W5V4T3S2R1Q0P9N8",
"retry_count": 0,
"status": "published",
"text": "Check out our new product launch!",
"updated_at": "2026-03-14T09:00:00Z",
"media": [
{
"source": "550e8400-e29b-41d4-a716-446655440000",
"source_type": "media_id",
"type": "image"
}
],
"media_ids": [
"<string>"
],
"published_at": "2026-04-01T10:00:05Z",
"scheduled_at": "2026-04-01T10:00:00Z",
"targets": [
{
"platform": "instagram",
"status": "published",
"account_id": "acc_01HZ9X3Q4R5M6N7P8V2K0W1J",
"board_id": "8828",
"error": {
"category": "validation",
"caused_by": "user",
"code": "platform.tiktok.media_required",
"message": "Video posts require at least one media URL"
},
"first_comment": "<string>",
"media": [
{
"source": "550e8400-e29b-41d4-a716-446655440000",
"source_type": "media_id",
"type": "image"
}
],
"media_ids": [
"<string>"
],
"media_type": "reel",
"metadata": {},
"metrics": {
"comments": 23,
"likes": 142,
"saves": 31,
"shares": 8,
"avg_watch_time_ms": 7400,
"calls": 2,
"crossposted_views": 310,
"directions": 1,
"emails": 2,
"extra": {},
"follows": 12,
"interactions": 204,
"profile_actions": 15,
"profile_visits": 48,
"reach": 3870,
"reposts": 6,
"skip_rate": 42.5,
"texts": 1,
"total_watch_time_ms": 37888000,
"views": 5120,
"website_clicks": 9
},
"metrics_synced_at": "2026-04-01T12:00:00Z",
"page_id": "sapi_page_01HZ9X3Q4R5M6N7P8V2K0W1J",
"permalink": "https://www.instagram.com/p/ABC123/",
"platform_data": {},
"platform_media": [
{
"type": "image",
"thumbnail_url": "https://scontent.cdninstagram.com/v/t51.29350-15/456_n.jpg",
"url": "https://scontent.cdninstagram.com/v/t51.29350-15/123_n.jpg"
}
],
"platform_post_id": "17895695668004550",
"published_at": "2026-04-01T10:00:05Z",
"scheduled_at": "2026-04-01T10:00:00Z",
"settings": {
"alt_text": "<string>",
"audio_type": "ORIGINAL_SOUND",
"child_attachments": [
{
"link": "<string>",
"description": "<string>",
"name": "<string>",
"picture": "<string>"
}
],
"comments_enabled": true,
"countries": [
"FR",
"BE"
],
"cta_link": "<string>",
"cta_type": "SHOP_NOW",
"is_ai_generated": true,
"max_age": 65,
"min_age": 18,
"multi_share_end_card": true,
"multi_share_optimized": true,
"place": {
"id": "<string>",
"name": "<string>"
},
"product_type": "REELS",
"share_to_feed": true
},
"text": "<string>",
"title": "<string>",
"visibility": "public"
}
],
"title": "Exciting News",
"visibility": "public"
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
},
"request_id": "01HZ9X3Q4R5M6N7P8V2K0W1J"
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
},
"request_id": "01HZ9X3Q4R5M6N7P8V2K0W1J"
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
},
"request_id": "01HZ9X3Q4R5M6N7P8V2K0W1J"
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
},
"request_id": "01HZ9X3Q4R5M6N7P8V2K0W1J"
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
},
"request_id": "01HZ9X3Q4R5M6N7P8V2K0W1J"
}Update a post
Updates the text, media, schedule time, targets, or hidden status of a pending post.
Posts in draft, scheduled, or failed status accept every field. Updating a failed post does not republish it: call POST /posts/{post_id}/retry afterwards.
A published or partial post can be edited only when it is live on Google Business Profile alone. Send text, platform_data.google.callToAction, or both: any other field returns 400 validation.field_not_editable. A post also live on another platform returns 409 post.state_invalid.
When the post is live on several Google locations and only some accept the edit, the response is the error from the first location that refused, and error.meta lists updated_account_ids and not_updated_account_ids. Send the same request again to finish the edit.
queue_id moves the post to another Queue, and queue_id: null takes it out of its Queue and keeps its time.
Omit targets to keep the current ones. Sending targets replaces them all.
scheduled_at must be in the future, and a scheduled post must keep at least one target.
curl --request PATCH \
--url https://api.social-api.ai/v1/posts/{post_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data @- <<EOF
{
"first_comment": "<string>",
"hidden": false,
"media": [
{
"source": "550e8400-e29b-41d4-a716-446655440000",
"source_type": "media_id",
"type": "image"
}
],
"media_ids": [
"<string>"
],
"platform_data": {},
"queue_id": "que_01J9Z8Y7X6W5V4T3S2R1Q0P9N8",
"scheduled_at": "2026-04-02T14:00:00Z",
"segments": [
{
"text": "And here's the second post in the thread.",
"media": [
{
"source": "550e8400-e29b-41d4-a716-446655440000",
"source_type": "media_id",
"type": "image"
}
],
"media_ids": [
"<string>"
]
}
],
"skip_validation": false,
"targets": [
{
"account_id": "acc_01HZ9X3Q4R5M6N7P8V2K0W1J",
"board_id": "8828",
"first_comment": "<string>",
"media": [
{
"source": "550e8400-e29b-41d4-a716-446655440000",
"source_type": "media_id",
"type": "image"
}
],
"media_ids": [
"<string>"
],
"page_id": "sapi_page_01JRQX...",
"platform_data": {},
"scheduled_at": "2026-04-01T10:00:00Z",
"text": "Platform-specific version of the post",
"title": "Custom title for LinkedIn",
"visibility": "public"
}
],
"text": "Updated post content",
"title": "Updated Title",
"visibility": "public"
}
EOFconst options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
first_comment: '<string>',
hidden: false,
media: [
{
source: '550e8400-e29b-41d4-a716-446655440000',
source_type: 'media_id',
type: 'image'
}
],
media_ids: ['<string>'],
platform_data: {},
queue_id: 'que_01J9Z8Y7X6W5V4T3S2R1Q0P9N8',
scheduled_at: '2026-04-02T14:00:00Z',
segments: [
{
text: 'And here\'s the second post in the thread.',
media: [
{
source: '550e8400-e29b-41d4-a716-446655440000',
source_type: 'media_id',
type: 'image'
}
],
media_ids: ['<string>']
}
],
skip_validation: false,
targets: [
{
account_id: 'acc_01HZ9X3Q4R5M6N7P8V2K0W1J',
board_id: '8828',
first_comment: '<string>',
media: [
{
source: '550e8400-e29b-41d4-a716-446655440000',
source_type: 'media_id',
type: 'image'
}
],
media_ids: ['<string>'],
page_id: 'sapi_page_01JRQX...',
platform_data: {},
scheduled_at: '2026-04-01T10:00:00Z',
text: 'Platform-specific version of the post',
title: 'Custom title for LinkedIn',
visibility: 'public'
}
],
text: 'Updated post content',
title: 'Updated Title',
visibility: 'public'
})
};
fetch('https://api.social-api.ai/v1/posts/{post_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.social-api.ai/v1/posts/{post_id}"
payload = {
"first_comment": "<string>",
"hidden": False,
"media": [
{
"source": "550e8400-e29b-41d4-a716-446655440000",
"source_type": "media_id",
"type": "image"
}
],
"media_ids": ["<string>"],
"platform_data": {},
"queue_id": "que_01J9Z8Y7X6W5V4T3S2R1Q0P9N8",
"scheduled_at": "2026-04-02T14:00:00Z",
"segments": [
{
"text": "And here's the second post in the thread.",
"media": [
{
"source": "550e8400-e29b-41d4-a716-446655440000",
"source_type": "media_id",
"type": "image"
}
],
"media_ids": ["<string>"]
}
],
"skip_validation": False,
"targets": [
{
"account_id": "acc_01HZ9X3Q4R5M6N7P8V2K0W1J",
"board_id": "8828",
"first_comment": "<string>",
"media": [
{
"source": "550e8400-e29b-41d4-a716-446655440000",
"source_type": "media_id",
"type": "image"
}
],
"media_ids": ["<string>"],
"page_id": "sapi_page_01JRQX...",
"platform_data": {},
"scheduled_at": "2026-04-01T10:00:00Z",
"text": "Platform-specific version of the post",
"title": "Custom title for LinkedIn",
"visibility": "public"
}
],
"text": "Updated post content",
"title": "Updated Title",
"visibility": "public"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"created_at": "2026-03-14T09:00:00Z",
"hidden": false,
"id": "p_01HZ9X3Q4R5M6N7P8V2K0W1J",
"queue_id": "que_01J9Z8Y7X6W5V4T3S2R1Q0P9N8",
"retry_count": 0,
"status": "published",
"text": "Check out our new product launch!",
"updated_at": "2026-03-14T09:00:00Z",
"media": [
{
"source": "550e8400-e29b-41d4-a716-446655440000",
"source_type": "media_id",
"type": "image"
}
],
"media_ids": [
"<string>"
],
"published_at": "2026-04-01T10:00:05Z",
"scheduled_at": "2026-04-01T10:00:00Z",
"targets": [
{
"platform": "instagram",
"status": "published",
"account_id": "acc_01HZ9X3Q4R5M6N7P8V2K0W1J",
"board_id": "8828",
"error": {
"category": "validation",
"caused_by": "user",
"code": "platform.tiktok.media_required",
"message": "Video posts require at least one media URL"
},
"first_comment": "<string>",
"media": [
{
"source": "550e8400-e29b-41d4-a716-446655440000",
"source_type": "media_id",
"type": "image"
}
],
"media_ids": [
"<string>"
],
"media_type": "reel",
"metadata": {},
"metrics": {
"comments": 23,
"likes": 142,
"saves": 31,
"shares": 8,
"avg_watch_time_ms": 7400,
"calls": 2,
"crossposted_views": 310,
"directions": 1,
"emails": 2,
"extra": {},
"follows": 12,
"interactions": 204,
"profile_actions": 15,
"profile_visits": 48,
"reach": 3870,
"reposts": 6,
"skip_rate": 42.5,
"texts": 1,
"total_watch_time_ms": 37888000,
"views": 5120,
"website_clicks": 9
},
"metrics_synced_at": "2026-04-01T12:00:00Z",
"page_id": "sapi_page_01HZ9X3Q4R5M6N7P8V2K0W1J",
"permalink": "https://www.instagram.com/p/ABC123/",
"platform_data": {},
"platform_media": [
{
"type": "image",
"thumbnail_url": "https://scontent.cdninstagram.com/v/t51.29350-15/456_n.jpg",
"url": "https://scontent.cdninstagram.com/v/t51.29350-15/123_n.jpg"
}
],
"platform_post_id": "17895695668004550",
"published_at": "2026-04-01T10:00:05Z",
"scheduled_at": "2026-04-01T10:00:00Z",
"settings": {
"alt_text": "<string>",
"audio_type": "ORIGINAL_SOUND",
"child_attachments": [
{
"link": "<string>",
"description": "<string>",
"name": "<string>",
"picture": "<string>"
}
],
"comments_enabled": true,
"countries": [
"FR",
"BE"
],
"cta_link": "<string>",
"cta_type": "SHOP_NOW",
"is_ai_generated": true,
"max_age": 65,
"min_age": 18,
"multi_share_end_card": true,
"multi_share_optimized": true,
"place": {
"id": "<string>",
"name": "<string>"
},
"product_type": "REELS",
"share_to_feed": true
},
"text": "<string>",
"title": "<string>",
"visibility": "public"
}
],
"title": "Exciting News",
"visibility": "public"
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
},
"request_id": "01HZ9X3Q4R5M6N7P8V2K0W1J"
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
},
"request_id": "01HZ9X3Q4R5M6N7P8V2K0W1J"
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
},
"request_id": "01HZ9X3Q4R5M6N7P8V2K0W1J"
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
},
"request_id": "01HZ9X3Q4R5M6N7P8V2K0W1J"
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
},
"request_id": "01HZ9X3Q4R5M6N7P8V2K0W1J"
}Authorizations
Body
Updated content
Text replaces the post body. Only for draft/scheduled/failed posts.
"Updated post content"
Response
Post updated