{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/indeed/json-schema/indeed-create-job-posting-payload-schema.json",
  "title": "CreateJobPostingPayload",
  "description": "Response payload from a job posting creation operation.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/indeed-jobs-api-openapi.yml#/components/schemas/CreateJobPostingPayload",
  "type": "object",
  "properties": {
    "results": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "jobPostingId": {
            "type": "string",
            "description": "The ID of the created or updated job posting."
          },
          "status": {
            "type": "string",
            "enum": [
              "CREATED",
              "UPDATED",
              "FAILED"
            ]
          },
          "errors": {
            "type": "array",
            "items": {
              "$ref": "#/$defs/ApiError"
            }
          }
        }
      }
    },
    "totalCreated": {
      "type": "integer",
      "description": "Total number of job postings successfully created."
    },
    "totalFailed": {
      "type": "integer",
      "description": "Total number of job postings that failed to create."
    }
  },
  "$defs": {
    "ApiError": {
      "type": "object",
      "description": "An error returned by the Indeed API.",
      "properties": {
        "code": {
          "type": "string",
          "description": "A machine-readable error code."
        },
        "message": {
          "type": "string",
          "description": "A human-readable description of the error."
        },
        "field": {
          "type": "string",
          "description": "The field that caused the error, if applicable."
        }
      }
    }
  }
}