{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/motorloop-com-au/json-schema/motorloop-com-au-post-api-vehicles-request-schema.json",
  "title": "PostApiVehiclesRequest",
  "x-generated": "2026-11-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/motorloop-com-au-openapi-generated.yml#/components/schemas/PostApiVehiclesRequest",
  "type": "object",
  "properties": {
    "make": {
      "type": "string",
      "description": "Up to 100 characters."
    },
    "model": {
      "type": "string",
      "description": "Up to 100 characters."
    },
    "odometerKm": {
      "type": "integer",
      "description": "0–2,000,000."
    },
    "price": {
      "type": "number",
      "description": "0–100,000,000."
    },
    "termsVersion": {
      "type": "string",
      "description": "Required on create."
    },
    "currency": {
      "type": "string",
      "description": "Three letters, defaults to AUD."
    },
    "description": {
      "type": "string",
      "description": "Up to 4000 characters."
    },
    "extras": {
      "type": "object",
      "description": "Field name → array of strings, per /api/vehicles/attributes."
    },
    "inventoryNo": {
      "type": "string",
      "description": "The public ML plate; leave blank to auto‑assign."
    },
    "listingType": {
      "type": "string",
      "description": "Sale (default), Swap, SaleOrSwap, Wanted, Showcase or Rental."
    },
    "template": {
      "type": "string",
      "description": "Detail‑page layout: standard, car‑cinematic, cinematic‑clean or car‑editorial."
    },
    "socialSharing": {
      "type": "boolean",
      "description": "Opt the listing into share cards."
    },
    "commentsDisabled": {
      "type": "boolean",
      "description": "Turn off comments for this listing."
    }
  },
  "required": [
    "make",
    "model",
    "odometerKm",
    "price",
    "termsVersion"
  ]
}