{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sprkly-app/json-schema/sprkly-app-update-post-request-schema.json",
  "title": "UpdatePostRequest",
  "description": "Send at least one field (none is 400 no_fields). Only posts with status scheduled, pending_approval or draft that sprkly has not tried to send can change. An approved post that you change goes back for approval (approvalId).",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sprkly-app-openapi.yml#/components/schemas/UpdatePostRequest",
  "type": "object",
  "properties": {
    "caption": {
      "type": "string"
    },
    "scheduledTime": {
      "type": "string",
      "format": "date-time",
      "description": "Must be in the future."
    },
    "profileIds": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Replacement accounts. Each extra account becomes its own new post (additionalPostIds)."
    },
    "mediaId": {
      "type": "string",
      "description": "Shorthand for a one-item mediaIds."
    },
    "mediaIds": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Replaces the whole media set, in slide order. Clears alt text unless altText is sent too."
    },
    "altText": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "One entry per media item, in order. Use \"\" for none."
    },
    "postType": {
      "type": "string",
      "description": "Send \"\" to clear it."
    }
  }
}