{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/salesforce-commerce-cloud/json-schema/salesforce-commerce-cloud-logpush-create-request-schema.json",
  "title": "LogpushCreateRequest",
  "description": "Request for create Logpush job.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/salesforce-commerce-cloud-zones-api-openapi.yml#/components/schemas/LogpushCreateRequest",
  "required": [
    "destinationPath",
    "logFields",
    "logType",
    "name"
  ],
  "type": "object",
  "properties": {
    "destinationPath": {
      "type": "string",
      "description": "Uniquely identifies s3 bucket for logs. Additional configuration parameters like region can be included. The string {DATE} in the URL path to separate logs into daily subdirectories; for example `s3://customer-bucket/logs/{DATE}?region=us-east-1&sse=AES256` The name of the directory will be replaced with the date in YYYYMMDD format (e.g. 20220215) when the logs are stored.",
      "pattern": "^.*$"
    },
    "name": {
      "type": "string",
      "description": "Logpush job name; the name cannot be changed after the job is created.",
      "pattern": "^.*$"
    },
    "filter": {
      "type": "string",
      "description": "Filter provides a way to customize which logs you want to receive. Filters are added as escaped JSON strings formatted. Default will include all logs.",
      "pattern": "^.*$"
    },
    "logFields": {
      "items": {
        "type": "string",
        "pattern": "^.*$"
      },
      "type": "array",
      "description": "List of log fields. Depending on the type of log, the list of fields that you would like to see in the logs may vary."
    },
    "ownershipChallengeToken": {
      "type": "string",
      "description": "Ownership token to proves the ownership of the destinationPath.",
      "pattern": "^.*$"
    },
    "enabled": {
      "type": "boolean",
      "description": "Enable logpush job while creating it."
    },
    "logType": {
      "type": "string",
      "description": "Type of logs. Available log types are `http_requests`, `firewall_events`, and `page_shield_events`.",
      "enum": [
        "http_requests",
        "firewall_events",
        "page_shield_events"
      ]
    }
  },
  "additionalProperties": false
}