Update a listing
PATCH
/api/v1/listings/{id}Saved listing.
Omitted fields stay as they are. When changing images or equipment, supply the complete replacement array. Fetch the current ETag before updating.
Required scope listings:write
Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | min. characters 1 · max. characters 120 |
If-Match | header | string | Yes | The latest listing ETag returned by the API. |
Idempotency-Key | header | string | Yes | Request UUID. Retry with the same key within 7 days. format uuid |
Request body
Schema UpdateListingInput
| Name | Type | Required | Description |
|---|---|---|---|
title | string | No | max. characters 100 |
shortDescription | string | No | max. characters 80 |
description | string | No | max. characters 16000 |
price | integer | No | minimum 0 · maximum 1000000000 |
make | string | No | max. characters 120 |
model | string | No | max. characters 120 |
generation | string | null | No | — |
makeId | string | No | max. characters 180 |
modelId | string | No | max. characters 300 |
generationId | string | No | max. characters 180 |
year | integer | null | No | — |
location | string | No | — |
voivodeship | string | No | max. characters 80 |
mileage | integer | null | No | — |
fuelType | "petrol" | "diesel" | "electric" | "hybrid" | "lpg" | null | No | — |
bodyType | string | No | max. characters 80 |
gearbox | string | No | max. characters 80 |
driveType | string | No | max. characters 80 |
power | integer | No | minimum 1 · maximum 5000 |
engineCc | integer | No | minimum 0 · maximum 30000 |
color | string | No | max. characters 50 |
condition | "new" | "used" | No | "new" | "used" |
noAccident | boolean | No | — |
firstOwner | boolean | No | — |
vatInvoice | boolean | No | — |
negotiable | boolean | No | — |
contactName | string | No | max. characters 120 |
contactPhone | string | No | max. characters 40 |
dealerLocationId | string | null | No | — |
priceType | string | No | max. characters 40 |
equipment | string[] | No | Complete replacement list. An empty array clears the options. Omitting the field keeps the current options. max. items 300 |
images | string | string[] | No | Omitting the field keeps the current photos. max. items 18 |
details | object | No | — |
lat | number | No | minimum -90 · maximum 90 |
lng | number | No | minimum -180 · maximum 180 |
listingTypeValue | string | No | min. characters 1 · max. characters 100 |
formContractVersion | 2 | No | — |
JSON Schema
{
"$ref": "#/components/schemas/UpdateListingInput"
}Responses
200 Saved listing.ETag- Resource version for the If-Match header.
application/jsonSchema MutationReceipt
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
status | "draft" | "payment_required" | "active" | "expired" | "sold" | Yes | — |
publicationState | "public" | "pending" | "hidden" | Yes | — |
updatedAt | string | Yes | format date-time |
publicPath | string | null | Yes | — |
paymentPath | string | No | — |
payment | PaymentReceipt | No | — |
archiveFeedback | object | No | — |
JSON Schema
{
"$ref": "#/components/schemas/MutationReceipt"
}409 Request processing error.application/jsonSchema object
| Name | Type | Required | Description |
|---|---|---|---|
code | string | Yes | — |
message | string | Yes | — |
requestId | string | Yes | — |
issues | object[] | No | — |
JSON Schema
{
"type": "object",
"required": [
"code",
"message",
"requestId"
],
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"requestId": {
"type": "string"
},
"issues": {
"type": "array",
"items": {
"type": "object"
}
}
}
}412 Request processing error.application/jsonSchema object
| Name | Type | Required | Description |
|---|---|---|---|
code | string | Yes | — |
message | string | Yes | — |
requestId | string | Yes | — |
issues | object[] | No | — |
JSON Schema
{
"type": "object",
"required": [
"code",
"message",
"requestId"
],
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"requestId": {
"type": "string"
},
"issues": {
"type": "array",
"items": {
"type": "object"
}
}
}
}422 Request processing error.application/jsonSchema object
| Name | Type | Required | Description |
|---|---|---|---|
code | string | Yes | — |
message | string | Yes | — |
requestId | string | Yes | — |
issues | object[] | No | — |
JSON Schema
{
"type": "object",
"required": [
"code",
"message",
"requestId"
],
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"requestId": {
"type": "string"
},
"issues": {
"type": "array",
"items": {
"type": "object"
}
}
}
}428 Request processing error.application/jsonSchema object
| Name | Type | Required | Description |
|---|---|---|---|
code | string | Yes | — |
message | string | Yes | — |
requestId | string | Yes | — |
issues | object[] | No | — |
JSON Schema
{
"type": "object",
"required": [
"code",
"message",
"requestId"
],
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"requestId": {
"type": "string"
},
"issues": {
"type": "array",
"items": {
"type": "object"
}
}
}
}Other API errors Request processing error.application/jsonSchema object
| Name | Type | Required | Description |
|---|---|---|---|
code | string | Yes | — |
message | string | Yes | — |
requestId | string | Yes | — |
issues | object[] | No | — |
JSON Schema
{
"type": "object",
"required": [
"code",
"message",
"requestId"
],
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"requestId": {
"type": "string"
},
"issues": {
"type": "array",
"items": {
"type": "object"
}
}
}
}401 A valid API key is required.403 The scope is missing or the production request does not use HTTPS.429 Rate limit exceeded. Check Retry-After.503 Access is closed or the service is temporarily unavailable. Check code.Related schemas
UpdateListingInput
{
"type": "object",
"properties": {
"title": {
"type": "string",
"maxLength": 100,
"pattern": "^[^\\p{Cc}\\p{Cf}]*$"
},
"shortDescription": {
"type": "string",
"maxLength": 80
},
"description": {
"type": "string",
"maxLength": 16000,
"pattern": "^[^\\u0000-\\u0008\\u000B\\u000C\\u000E-\\u001F\\u007F]*$"
},
"price": {
"type": "integer",
"minimum": 0,
"maximum": 1000000000
},
"make": {
"type": "string",
"maxLength": 120
},
"model": {
"type": "string",
"maxLength": 120
},
"generation": {
"anyOf": [
{
"type": "string",
"maxLength": 80
},
{
"type": "null"
}
]
},
"makeId": {
"type": "string",
"maxLength": 180
},
"modelId": {
"type": "string",
"maxLength": 300
},
"generationId": {
"type": "string",
"maxLength": 180
},
"year": {
"anyOf": [
{
"type": "integer",
"minimum": 1900,
"maximum": 2027
},
{
"type": "null"
}
]
},
"location": {
"type": "string"
},
"voivodeship": {
"type": "string",
"maxLength": 80
},
"mileage": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 10000000
},
{
"type": "null"
}
]
},
"fuelType": {
"anyOf": [
{
"type": "string",
"enum": [
"petrol",
"diesel",
"electric",
"hybrid",
"lpg"
]
},
{
"type": "null"
}
]
},
"bodyType": {
"type": "string",
"maxLength": 80
},
"gearbox": {
"type": "string",
"maxLength": 80
},
"driveType": {
"type": "string",
"maxLength": 80
},
"power": {
"type": "integer",
"minimum": 1,
"maximum": 5000
},
"engineCc": {
"type": "integer",
"minimum": 0,
"maximum": 30000
},
"color": {
"type": "string",
"maxLength": 50
},
"condition": {
"type": "string",
"enum": [
"new",
"used"
]
},
"noAccident": {
"type": "boolean"
},
"firstOwner": {
"type": "boolean"
},
"vatInvoice": {
"type": "boolean"
},
"negotiable": {
"type": "boolean"
},
"contactName": {
"type": "string",
"maxLength": 120
},
"contactPhone": {
"type": "string",
"maxLength": 40
},
"dealerLocationId": {
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 120
},
{
"type": "null"
}
]
},
"priceType": {
"type": "string",
"maxLength": 40
},
"equipment": {
"maxItems": 300,
"type": "array",
"items": {
"type": "string",
"maxLength": 120
},
"description": "Complete replacement list. An empty array clears the options. Omitting the field keeps the current options."
},
"images": {
"maxItems": 18,
"type": "array",
"items": {
"anyOf": [
{
"type": "string",
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,119}$"
},
{
"type": "string",
"pattern": "^existing:[a-f0-9]{64}$"
}
]
},
"description": "Omitting the field keeps the current photos."
},
"details": {
"type": "object",
"properties": {
"vin": {
"type": "string",
"minLength": 1,
"maxLength": 17,
"pattern": "^[^\\p{Cc}\\p{Cf}]+$"
},
"serialNumber": {
"type": "string",
"minLength": 1,
"maxLength": 64,
"pattern": "^[^\\p{Cc}\\p{Cf}]+$"
},
"registrationNumber": {
"type": "string",
"minLength": 1,
"maxLength": 32,
"pattern": "^[^\\p{Cc}\\p{Cf}]+$"
},
"firstRegistrationDate": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
},
"lifetimeHours": {
"type": "integer",
"minimum": 0,
"maximum": 1000000
},
"trailerAxleCount": {
"type": "integer",
"minimum": 0,
"maximum": 8
},
"trailerCargo": {
"type": "string",
"minLength": 1,
"maxLength": 160,
"pattern": "^[^\\p{Cc}\\p{Cf}]+$"
},
"trailerGrossWeightKg": {
"type": "integer",
"minimum": 0,
"maximum": 1000000
},
"trailerPayloadKg": {
"type": "integer",
"minimum": 0,
"maximum": 1000000
},
"camperBedLayout": {
"type": "string",
"minLength": 1,
"maxLength": 160,
"pattern": "^[^\\p{Cc}\\p{Cf}]+$"
},
"camperSleepingPlaces": {
"type": "integer",
"minimum": 0,
"maximum": 50
},
"camperTravelSeats": {
"type": "integer",
"minimum": 0,
"maximum": 100
},
"camperBase": {
"type": "string",
"minLength": 1,
"maxLength": 160,
"pattern": "^[^\\p{Cc}\\p{Cf}]+$"
},
"camperGvwKg": {
"type": "integer",
"minimum": 0,
"maximum": 1000000
},
"camperKitchen": {
"type": "string",
"minLength": 1,
"maxLength": 160,
"pattern": "^[^\\p{Cc}\\p{Cf}]+$"
},
"camperBathroom": {
"type": "string",
"minLength": 1,
"maxLength": 160,
"pattern": "^[^\\p{Cc}\\p{Cf}]+$"
},
"propulsion": {
"type": "string",
"minLength": 1,
"maxLength": 160,
"pattern": "^[^\\p{Cc}\\p{Cf}]+$"
},
"maxExcavatingDepthMm": {
"type": "integer",
"minimum": 0,
"maximum": 1000000
},
"maxExcavatingCapacityM3": {
"type": "number",
"minimum": 0,
"maximum": 10000
},
"maxLiftingWeightKg": {
"type": "integer",
"minimum": 0,
"maximum": 1000000
},
"maxLiftingHeightMm": {
"type": "integer",
"minimum": 0,
"maximum": 1000000
},
"offHighway": {
"type": "boolean"
},
"refrigeratorUnit": {
"type": "boolean"
},
"partMainCategory": {
"type": "string",
"minLength": 1,
"maxLength": 160,
"pattern": "^[^\\p{Cc}\\p{Cf}]+$"
},
"partSubCategory": {
"type": "string",
"minLength": 1,
"maxLength": 160,
"pattern": "^[^\\p{Cc}\\p{Cf}]+$"
},
"partCategoryPath": {
"maxItems": 10,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 160,
"pattern": "^[^\\p{Cc}\\p{Cf}]+$"
}
},
"partProducer": {
"type": "string",
"minLength": 1,
"maxLength": 160,
"pattern": "^[^\\p{Cc}\\p{Cf}]+$"
},
"partProducerCustom": {
"type": "string",
"minLength": 1,
"maxLength": 160,
"pattern": "^[^\\p{Cc}\\p{Cf}]+$"
},
"partCondition": {
"type": "string",
"minLength": 1,
"maxLength": 160,
"pattern": "^[^\\p{Cc}\\p{Cf}]+$"
},
"partStockQuantity": {
"type": "integer",
"minimum": 0,
"maximum": 100000
},
"partVehicleTypes": {
"maxItems": 24,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 160,
"pattern": "^[^\\p{Cc}\\p{Cf}]+$"
}
},
"partCompatibilityVehicles": {
"maxItems": 80,
"type": "array",
"items": {
"type": "object",
"properties": {
"scope": {
"type": "string",
"enum": [
"passenger",
"delivery",
"truck",
"motorcycle",
"camper",
"trailer",
"agriculture",
"construction"
]
},
"make": {
"type": "string",
"minLength": 1,
"maxLength": 160,
"pattern": "^[^\\p{Cc}\\p{Cf}]+$"
},
"model": {
"type": "string",
"minLength": 1,
"maxLength": 160,
"pattern": "^[^\\p{Cc}\\p{Cf}]+$"
},
"generation": {
"type": "string",
"minLength": 1,
"maxLength": 160,
"pattern": "^[^\\p{Cc}\\p{Cf}]+$"
},
"makeId": {
"type": "string",
"minLength": 1,
"maxLength": 180,
"pattern": "^[^\\p{Cc}\\p{Cf}]+$"
},
"modelId": {
"type": "string",
"minLength": 1,
"maxLength": 300,
"pattern": "^[^\\p{Cc}\\p{Cf}]+$"
},
"generationId": {
"type": "string",
"minLength": 1,
"maxLength": 180,
"pattern": "^[^\\p{Cc}\\p{Cf}]+$"
},
"customMake": {
"type": "string",
"minLength": 1,
"maxLength": 120,
"pattern": "^[^\\p{Cc}\\p{Cf}]+$"
},
"customModel": {
"type": "string",
"minLength": 1,
"maxLength": 120,
"pattern": "^[^\\p{Cc}\\p{Cf}]+$"
},
"yearFrom": {
"type": "integer",
"minimum": 0,
"maximum": 2200
},
"yearTo": {
"type": "integer",
"minimum": 0,
"maximum": 2200
},
"engineVersion": {
"type": "string",
"minLength": 1,
"maxLength": 160,
"pattern": "^[^\\p{Cc}\\p{Cf}]+$"
}
},
"additionalProperties": false
}
},
"partYearFrom": {
"type": "integer",
"minimum": 0,
"maximum": 2200
},
"partYearTo": {
"type": "integer",
"minimum": 0,
"maximum": 2200
},
"partTireWidth": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 500
},
{
"type": "string",
"pattern": "^\\d{2,3}$"
}
]
},
"partTireProfile": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 100
},
{
"type": "string",
"pattern": "^\\d{1,3}$"
}
]
},
"partRimSize": {
"anyOf": [
{
"type": "number",
"minimum": 1,
"maximum": 100
},
{
"type": "string",
"pattern": "^\\d{1,2}(?:[.,]\\d{1,2})?$"
}
]
},
"partTireType": {
"type": "string",
"minLength": 1,
"maxLength": 160,
"pattern": "^[^\\p{Cc}\\p{Cf}]+$"
},
"partRimsType": {
"type": "string",
"minLength": 1,
"maxLength": 160,
"pattern": "^[^\\p{Cc}\\p{Cf}]+$"
},
"partDelivery": {
"type": "object",
"properties": {
"dpdEnabled": {
"type": "boolean"
},
"dpdCost": {
"type": "number",
"minimum": 0,
"maximum": 100000
},
"inpostEnabled": {
"type": "boolean"
},
"inpostCost": {
"type": "number",
"minimum": 0,
"maximum": 100000
},
"postEnabled": {
"type": "boolean"
},
"postCost": {
"type": "number",
"minimum": 0,
"maximum": 100000
},
"pickupEnabled": {
"type": "boolean"
}
},
"additionalProperties": false
},
"partOeNumbers": {
"maxItems": 30,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 80,
"pattern": "^[^\\p{Cc}\\p{Cf}]+$"
}
},
"partQuantityLabel": {
"type": "string",
"minLength": 1,
"maxLength": 160,
"pattern": "^[^\\p{Cc}\\p{Cf}]+$"
},
"partEngineVersion": {
"type": "string",
"minLength": 1,
"maxLength": 160,
"pattern": "^[^\\p{Cc}\\p{Cf}]+$"
},
"partTireBrand": {
"type": "string",
"minLength": 1,
"maxLength": 160,
"pattern": "^[^\\p{Cc}\\p{Cf}]+$"
},
"partSpeedIndex": {
"type": "string",
"minLength": 1,
"maxLength": 12,
"pattern": "^[^\\p{Cc}\\p{Cf}]+$"
},
"partRollingResistance": {
"type": "string",
"minLength": 1,
"maxLength": 12,
"pattern": "^[^\\p{Cc}\\p{Cf}]+$"
},
"partWetGrip": {
"type": "string",
"minLength": 1,
"maxLength": 12,
"pattern": "^[^\\p{Cc}\\p{Cf}]+$"
},
"partExternalNoiseDb": {
"type": "integer",
"minimum": 0,
"maximum": 150
},
"partInstallationPositions": {
"maxItems": 12,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 160,
"pattern": "^[^\\p{Cc}\\p{Cf}]+$"
}
},
"partSteeringSide": {
"type": "string",
"minLength": 1,
"maxLength": 160,
"pattern": "^[^\\p{Cc}\\p{Cf}]+$"
},
"partAdditionalCompatibility": {
"type": "string",
"minLength": 1,
"maxLength": 1000,
"pattern": "^[^\\p{Cc}\\p{Cf}]+$"
},
"partDeliveryTime": {
"type": "string",
"minLength": 1,
"maxLength": 160,
"pattern": "^[^\\p{Cc}\\p{Cf}]+$"
},
"partReturnPolicy": {
"type": "string",
"minLength": 1,
"maxLength": 160,
"pattern": "^[^\\p{Cc}\\p{Cf}]+$"
},
"partSalesDocument": {
"type": "string",
"minLength": 1,
"maxLength": 160,
"pattern": "^[^\\p{Cc}\\p{Cf}]+$"
},
"partCustomName": {
"type": "string",
"minLength": 1,
"maxLength": 160,
"pattern": "^[^\\p{Cc}\\p{Cf}]+$"
},
"offerMode": {
"type": "string",
"enum": [
"sale",
"rent"
]
},
"financingAvailable": {
"type": "boolean"
},
"leasingAvailable": {
"type": "boolean"
},
"exchangePossible": {
"type": "boolean"
},
"showPhone": {
"type": "boolean"
},
"mapPinnedManually": {
"type": "boolean"
},
"damaged": {
"type": "boolean"
},
"rightHandDrive": {
"type": "boolean"
},
"doubleRearWheels": {
"type": "boolean"
},
"engineCode": {
"type": "string",
"minLength": 1,
"maxLength": 160,
"pattern": "^[^\\p{Cc}\\p{Cf}]+$"
},
"seats": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 120
},
{
"type": "string",
"minLength": 1,
"maxLength": 12,
"pattern": "^[^\\p{Cc}\\p{Cf}]+$"
}
]
},
"doors": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 30
},
{
"type": "string",
"minLength": 1,
"maxLength": 12,
"pattern": "^[^\\p{Cc}\\p{Cf}]+$"
}
]
},
"colorType": {
"type": "string",
"minLength": 1,
"maxLength": 160,
"pattern": "^[^\\p{Cc}\\p{Cf}]+$"
},
"upholsteryMaterial": {
"type": "string",
"minLength": 1,
"maxLength": 160,
"pattern": "^[^\\p{Cc}\\p{Cf}]+$"
},
"upholsteryColor": {
"type": "string",
"minLength": 1,
"maxLength": 160,
"pattern": "^[^\\p{Cc}\\p{Cf}]+$"
},
"motorcycleLicenseCategory": {
"type": "string",
"minLength": 1,
"maxLength": 160,
"pattern": "^[^\\p{Cc}\\p{Cf}]+$"
},
"truckCabinType": {
"type": "string",
"minLength": 1,
"maxLength": 160,
"pattern": "^[^\\p{Cc}\\p{Cf}]+$"
},
"dpfStatus": {
"type": "string",
"minLength": 1,
"maxLength": 160,
"pattern": "^[^\\p{Cc}\\p{Cf}]+$"
},
"accidentHistory": {
"type": "string",
"minLength": 1,
"maxLength": 160,
"pattern": "^[^\\p{Cc}\\p{Cf}]+$"
},
"serviceHistory": {
"type": "string",
"minLength": 1,
"maxLength": 160,
"pattern": "^[^\\p{Cc}\\p{Cf}]+$"
},
"ownerCount": {
"type": "string",
"minLength": 1,
"maxLength": 160,
"pattern": "^[^\\p{Cc}\\p{Cf}]+$"
},
"firstRegistrationCountry": {
"type": "string",
"minLength": 1,
"maxLength": 160,
"pattern": "^[^\\p{Cc}\\p{Cf}]+$"
},
"registrationInPolandDate": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
},
"technicalInspectionUntil": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
},
"warrantyUntil": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
},
"makerWarrantyUntilKm": {
"type": "integer",
"minimum": 0,
"maximum": 10000000
},
"lengthMm": {
"type": "integer",
"minimum": 0,
"maximum": 1000000
},
"widthMm": {
"type": "integer",
"minimum": 0,
"maximum": 1000000
},
"heightMm": {
"type": "integer",
"minimum": 0,
"maximum": 1000000
},
"wheelbaseMm": {
"type": "integer",
"minimum": 0,
"maximum": 1000000
},
"curbWeightKg": {
"type": "integer",
"minimum": 0,
"maximum": 1000000
},
"camperInteriorLengthMm": {
"type": "integer",
"minimum": 0,
"maximum": 1000000
},
"camperInteriorWidthMm": {
"type": "integer",
"minimum": 0,
"maximum": 1000000
},
"camperInteriorHeightMm": {
"type": "integer",
"minimum": 0,
"maximum": 1000000
},
"camperTotalHeightMm": {
"type": "integer",
"minimum": 0,
"maximum": 1000000
},
"camperFreshWaterL": {
"type": "integer",
"minimum": 0,
"maximum": 10000
},
"camperGreyWaterL": {
"type": "integer",
"minimum": 0,
"maximum": 10000
},
"camperLpgTankL": {
"type": "integer",
"minimum": 0,
"maximum": 10000
},
"powerKw": {
"type": "integer",
"minimum": 0,
"maximum": 10000
},
"topSpeedKmh": {
"type": "integer",
"minimum": 0,
"maximum": 2000
},
"torqueNm": {
"type": "integer",
"minimum": 0,
"maximum": 100000
},
"co2Emission": {
"type": "integer",
"minimum": 0,
"maximum": 10000
},
"euroStandard": {
"type": "string",
"minLength": 1,
"maxLength": 160,
"pattern": "^[^\\p{Cc}\\p{Cf}]+$"
},
"fuelConsumptionCity": {
"type": "number",
"minimum": 0,
"maximum": 1000
},
"fuelConsumptionHighway": {
"type": "number",
"minimum": 0,
"maximum": 1000
},
"fuelConsumptionCombined": {
"type": "number",
"minimum": 0,
"maximum": 1000
},
"tankCapacityL": {
"type": "integer",
"minimum": 0,
"maximum": 100000
},
"trunkCapacityL": {
"type": "integer",
"minimum": 0,
"maximum": 100000
},
"acceleration0100": {
"type": "number",
"minimum": 0,
"maximum": 120
},
"batteryRangeKm": {
"type": "integer",
"minimum": 0,
"maximum": 10000
},
"chargerPowerKw": {
"type": "integer",
"minimum": 0,
"maximum": 10000
},
"maxChargingPowerKw": {
"type": "number",
"minimum": 0,
"maximum": 10000
},
"chargingTime80Min": {
"type": "integer",
"minimum": 0,
"maximum": 100000
},
"chargingTime100Min": {
"type": "integer",
"minimum": 0,
"maximum": 100000
},
"chargingTimeHomeMin": {
"type": "integer",
"minimum": 0,
"maximum": 100000
},
"chargingConnectorType": {
"type": "string",
"minLength": 1,
"maxLength": 160,
"pattern": "^[^\\p{Cc}\\p{Cf}]+$"
},
"chargingCurrentType": {
"type": "string",
"minLength": 1,
"maxLength": 160,
"pattern": "^[^\\p{Cc}\\p{Cf}]+$"
},
"batteryCapacityKwh": {
"type": "number",
"minimum": 0,
"maximum": 100000
},
"batteryType": {
"type": "string",
"minLength": 1,
"maxLength": 160,
"pattern": "^[^\\p{Cc}\\p{Cf}]+$"
},
"batteryCondition": {
"type": "string",
"minLength": 1,
"maxLength": 160,
"pattern": "^[^\\p{Cc}\\p{Cf}]+$"
},
"batteryCount": {
"type": "integer",
"minimum": 0,
"maximum": 1000
},
"batteryCycleCount": {
"type": "integer",
"minimum": 0,
"maximum": 1000000
},
"electricPowerPeakKw": {
"type": "integer",
"minimum": 0,
"maximum": 10000
},
"evBattery": {
"type": "string",
"minLength": 1,
"maxLength": 160,
"pattern": "^[^\\p{Cc}\\p{Cf}]+$"
},
"evCable": {
"type": "string",
"minLength": 1,
"maxLength": 160,
"pattern": "^[^\\p{Cc}\\p{Cf}]+$"
},
"evFastCharge": {
"type": "string",
"minLength": 1,
"maxLength": 160,
"pattern": "^[^\\p{Cc}\\p{Cf}]+$"
},
"evRegen": {
"type": "string",
"minLength": 1,
"maxLength": 160,
"pattern": "^[^\\p{Cc}\\p{Cf}]+$"
},
"customMake": {
"type": "string",
"minLength": 1,
"maxLength": 120,
"pattern": "^[^\\p{Cc}\\p{Cf}]+$"
},
"customModel": {
"type": "string",
"minLength": 1,
"maxLength": 120,
"pattern": "^[^\\p{Cc}\\p{Cf}]+$"
}
},
"additionalProperties": false
},
"lat": {
"type": "number",
"minimum": -90,
"maximum": 90
},
"lng": {
"type": "number",
"minimum": -180,
"maximum": 180
},
"listingTypeValue": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"pattern": "^[^\\p{Cc}\\p{Cf}]+$"
},
"formContractVersion": {
"type": "number",
"const": 2
}
},
"additionalProperties": false,
"description": "A draft may be incomplete. Active listings and drafts awaiting payment must follow the full publication rules."
}MutationReceipt
{
"type": "object",
"required": [
"id",
"status",
"publicationState",
"updatedAt",
"publicPath"
],
"properties": {
"id": {
"type": "string"
},
"status": {
"enum": [
"draft",
"payment_required",
"active",
"expired",
"sold"
]
},
"publicationState": {
"enum": [
"public",
"pending",
"hidden"
]
},
"updatedAt": {
"type": "string",
"format": "date-time"
},
"publicPath": {
"type": [
"string",
"null"
]
},
"paymentPath": {
"type": "string"
},
"payment": {
"$ref": "#/components/schemas/PaymentReceipt"
},
"archiveFeedback": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"outcome": {
"enum": [
"sold",
"not_sold",
"other"
]
},
"recommendationScore": {
"type": [
"integer",
"null"
],
"minimum": 1,
"maximum": 10
},
"updatedAt": {
"type": "string",
"format": "date-time"
}
},
"required": [
"id",
"outcome",
"recommendationScore",
"updatedAt"
]
}
}
}PaymentReceipt
{
"type": "object",
"required": [
"id",
"amountCents",
"currency",
"status"
],
"properties": {
"id": {
"type": "string"
},
"amountCents": {
"type": "integer",
"minimum": 1
},
"currency": {
"type": "string"
},
"status": {
"type": "string"
}
}
}