{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pipeliner/json-schema/pipeliner-batch-approval-input-schema.json",
  "title": "batchApprovalInput",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pipeliner-approval-api-openapi.yml#/components/schemas/batchApprovalInput",
  "properties": {
    "account_id": {
      "type": "string",
      "format": "uuid",
      "description": "Id of the linked account."
    },
    "actor_id": {
      "type": "string",
      "format": "uuid",
      "description": "Id of the triggering user."
    },
    "application_id": {
      "type": "string",
      "format": "uuid",
      "description": "Id of the application."
    },
    "approval_process_id": {
      "type": "string",
      "format": "uuid",
      "description": "Id of the approval process."
    },
    "approval_status": {
      "type": "integer",
      "description": "Field whose values are strictly defined with an enumeration of values.\n\nInteger enum value: 0 - Pending, 1 - Approved, 2 - Rejected",
      "enum": [
        0,
        1,
        2
      ]
    },
    "comment": {
      "type": "string",
      "description": "Comment the requester attached when raising the approval."
    },
    "contact_id": {
      "type": "string",
      "format": "uuid",
      "description": "Id of the linked contact."
    },
    "lead_oppty_id": {
      "type": "string",
      "format": "uuid",
      "description": "Id of the linked lead or opportunity, or empty when not linked."
    },
    "quote_id": {
      "type": "string",
      "format": "uuid",
      "description": "Id of the linked quote."
    },
    "status": {
      "type": "integer",
      "description": "Field whose values are strictly defined with an enumeration of values.\n\nInteger enum value: 1 - Ok, 2 - Warning, 3 - Error, 4 - Scheduled, 5 - Expired",
      "enum": [
        1,
        2,
        3,
        4,
        5
      ]
    },
    "revision": {
      "type": "integer",
      "format": "int32",
      "description": "Revision when entity was lastly changed."
    },
    "approvers": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uri"
          }
        },
        "description": "Relation to ApprovalApprover, see: 'updateApprovalApproverInput' object for properties."
      },
      "description": "Users who must respond to the approval, with their individual responses."
    },
    "id": {
      "description": "ID of object to update.",
      "type": "string",
      "format": "uuid"
    }
  }
}