{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/schedchie-com/json-schema/schedchie-com-scheduled-post-schema.json",
  "title": "ScheduledPost",
  "description": "The acknowledgement of a scheduled post. Fetch the full post with `GET /posts/{postId}`.",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/schedchie-com-openapi.json#/components/schemas/ScheduledPost",
  "type": "object",
  "required": [
    "postId",
    "processingStatus",
    "scheduledFor",
    "accounts"
  ],
  "properties": {
    "postId": {
      "type": "string",
      "description": "The new post's id."
    },
    "processingStatus": {
      "type": "string",
      "description": "`pending`, or `pending_approval` when a member scheduled it and the owner must approve."
    },
    "message": {
      "type": "string"
    },
    "scheduledFor": {
      "type": "string",
      "format": "date-time",
      "description": "The `scheduledTime` as accepted."
    },
    "accounts": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "`platform:name` of every account the post targets."
    },
    "mediaCount": {
      "type": "integer"
    },
    "warnings": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "accountId": {
            "type": "string"
          }
        }
      }
    },
    "notes": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "What Schedchie adjusted per platform (a trimmed title, a first comment moved)."
    },
    "duplicate": {
      "type": "boolean",
      "description": "`true` on a replayed `Idempotency-Key`: this is the post made by the earlier call."
    }
  }
}