{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aidelly-ai/json-schema/aidelly-ai-post-approval-action-request-schema.json",
  "title": "PostApprovalActionRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aidelly-ai-postapprovals-api-openapi.yml#/components/schemas/PostApprovalActionRequest",
  "type": "object",
  "required": [
    "action"
  ],
  "properties": {
    "action": {
      "type": "string",
      "enum": [
        "approve",
        "reject",
        "return_to_draft",
        "comment"
      ]
    },
    "post_id": {
      "type": "string",
      "format": "uuid",
      "description": "Required when actioning a single post."
    },
    "post_ids": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uuid"
      },
      "description": "Required when bulk-actioning multiple posts."
    },
    "comment": {
      "type": "string",
      "description": "Optional. Stored as the rejection reason on `reject`."
    }
  }
}