{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/wenmarpro-com/json-schema/wenmarpro-com-create-attachment-body-schema.json",
  "title": "CreateAttachmentBody",
  "x-generated": "2026-11-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/wenmarpro-com-app-openapi.json#/components/schemas/CreateAttachmentBody",
  "properties": {
    "byte_size": {
      "description": "The file's size in bytes, when the client knows it (plan 1426): over the upload limit\nthe stage is refused with 422 `too_large`. Optional: released clients do not send it.",
      "format": "int64",
      "type": [
        "integer",
        "null"
      ]
    },
    "concern_key": {
      "description": "The concern this file is the media of (plan 3124): the client's key for the concern,\nmatching its create `Idempotency-Key`. Work orders only; a request with it on another\nparent is refused with 422 `unsupported_attachable`. Optional: released clients do not\nsend it.",
      "type": [
        "string",
        "null"
      ]
    },
    "content_type": {
      "type": "string"
    },
    "inspection_item_id": {
      "description": "The inspection item this photo shows (plan 1211): an item of an inspection on this\nwork order.",
      "format": "int64",
      "type": [
        "integer",
        "null"
      ]
    },
    "public_id": {
      "description": "The client's own id for this attachment (plan 1441): a second call with it answers the\nsame row.",
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "content_type"
  ],
  "type": "object"
}