{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/avetta/main/json-schema/avetta-1-0-0-create-work-request-request-schema.json",
  "title": "1.0.0_CreateWorkRequestRequest",
  "description": "Request body for creating a new work request",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/avetta-connect-openapi.yml#/components/schemas/1.0.0_CreateWorkRequestRequest",
  "type": "object",
  "properties": {
    "projectId": {
      "type": "string",
      "description": "Unique project identifier (must be created and active)"
    },
    "supplierId": {
      "type": "string",
      "description": "Supplier identifier (must have proper connection to hierarchy)"
    },
    "siteIds": {
      "type": "array",
      "description": "Array of site identifiers (must belong to the hierarchy associated with clientId)",
      "items": {
        "type": "string"
      }
    },
    "workRequestName": {
      "type": "string",
      "description": "Name of the work request. Leading and trailing whitespace is trimmed before validation, so the length limit applies to the trimmed value.",
      "minLength": 1,
      "maxLength": 250
    }
  },
  "required": [
    "projectId",
    "supplierId",
    "siteIds",
    "workRequestName"
  ]
}