{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/telnyx/main/json-schema/telnyx-phone-number-blocks-job-schema.json",
  "title": "PhoneNumberBlocksJob",
  "x-generated": "2026-10-08",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/telnyx-phone-number-blocks-background-jobs-api-openapi.yml#/components/schemas/PhoneNumberBlocksJob",
  "properties": {
    "created_at": {
      "description": "ISO 8601 formatted date indicating when the resource was created.",
      "readOnly": true,
      "type": "string"
    },
    "etc": {
      "description": "ISO 8601 formatted date indicating when the estimated time of completion of the background job.",
      "format": "date-time",
      "readOnly": true,
      "type": "string"
    },
    "failed_operations": {
      "items": {
        "$ref": "#/$defs/PhoneNumberBlocksJobFailedOperation"
      },
      "readOnly": true,
      "type": "array"
    },
    "id": {
      "description": "Identifies the resource.",
      "format": "uuid",
      "readOnly": true,
      "type": "string"
    },
    "record_type": {
      "description": "Identifies the type of the resource.",
      "readOnly": true,
      "type": "string"
    },
    "status": {
      "default": "pending",
      "description": "Indicates the completion status of the background operation.",
      "enum": [
        "pending",
        "in_progress",
        "completed",
        "failed"
      ],
      "readOnly": true,
      "type": "string"
    },
    "successful_operations": {
      "items": {
        "$ref": "#/$defs/PhoneNumberBlocksJobSuccessfulOperation",
        "description": "The phone numbers successfully updated."
      },
      "readOnly": true,
      "type": "array"
    },
    "type": {
      "description": "Identifies the type of the background job.",
      "enum": [
        "delete_phone_number_block"
      ],
      "readOnly": true,
      "type": "string"
    },
    "updated_at": {
      "description": "ISO 8601 formatted date indicating when the resource was updated.",
      "readOnly": true,
      "type": "string"
    }
  },
  "type": "object",
  "$defs": {
    "PhoneNumberBlocksJobFailedOperation": {
      "properties": {
        "errors": {
          "items": {
            "$ref": "#/$defs/numbers_Error"
          },
          "type": "array"
        },
        "id": {
          "description": "The phone number's ID",
          "type": "string"
        },
        "phone_number": {
          "description": "The phone number in e164 format.",
          "type": "string"
        }
      },
      "type": "object"
    },
    "PhoneNumberBlocksJobSuccessfulOperation": {
      "properties": {
        "id": {
          "description": "The phone number's ID",
          "type": "string"
        },
        "phone_number": {
          "description": "The phone number in e164 format.",
          "type": "string"
        }
      },
      "type": "object"
    },
    "numbers_Error": {
      "properties": {
        "code": {
          "type": "string"
        },
        "detail": {
          "type": "string"
        },
        "meta": {
          "properties": {
            "url": {
              "description": "URL with additional information on the error.",
              "type": "string"
            }
          },
          "type": "object"
        },
        "source": {
          "properties": {
            "parameter": {
              "description": "Indicates which query parameter caused the error.",
              "type": "string"
            },
            "pointer": {
              "description": "JSON pointer (RFC6901) to the offending entity.",
              "type": "string"
            }
          },
          "type": "object"
        },
        "title": {
          "type": "string"
        }
      },
      "type": "object"
    }
  }
}