/posts/{id}
posts:update
Header'lar
Authorization
*API key. Format: Bearer xpl_live_...
Idempotency-Key
*Unique value of 1-255 characters to safely retry the same write request.
Content-Type
Use application/json when sending JSON body.
Body
text
Shared post text. Effective text is validated against each target's platform limit. URLs are not allowed.
title
Optional title.
scheduledAt
Schedule time or null to remove the schedule.
status
Only draft_unscheduled, draft_scheduled or scheduled. To cancel, use the cancel endpoint.
mediaRefs
Storage references or public storage URLs for the selected account.
mediaMetadata
Media metadata fields such as alt text.
publishTargets
Changes publish targets together with platform-specific textOverride and media subsets.
Cevaplar
Post updated.
Post not found or not available.
cURL
curl -X PATCH https://api.xplanner.co/v1/posts/post_123 \ -H "Authorization: Bearer $XPLANNER_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: post-update-001" \ -d '{ "text": "Bu hafta ürün tarafında API ve MCP akışını güçlendirdik.", "scheduledAt": "2026-05-20T09:00:00.000Z" }'Cevap
{ "data": { "id": "post_123", "status": "scheduled", "title": "Haftalık güncelleme", "text": "Bu hafta ürün tarafında API ve MCP akışını güçlendirdik.", "scheduledAt": "2026-05-20T09:00:00.000Z", "media": [], "mediaRefs": [], "mediaMetadata": [], "xPostId": null, "createdAt": "2026-05-15T09:00:00.000Z", "updatedAt": "2026-05-15T10:00:00.000Z" }, "requestId": "req_123"}