Pobierz typy ogłoszeń
GET
/api/v1/listing-typesTypy ogłoszeń i wymagania formularza.
Pobierz aktualny profil typu ogłoszenia przed walidacją formularza. Obejmuje wymagane pola, warunki i minimalną liczbę zdjęć.
Wymagany zakres listings:read
Odpowiedzi
200 Typy ogłoszeń i wymagania formularza.application/jsonSchemat object
| Nazwa | Typ | Wymagany | Opis |
|---|---|---|---|
formVersion | integer | Tak | — |
types | object[] | Tak | — |
JSON Schema
{
"type": "object",
"required": [
"formVersion",
"types"
],
"properties": {
"formVersion": {
"type": "integer"
},
"types": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"label",
"category",
"minimumPhotos",
"required",
"optional",
"conditionallyRequired"
],
"properties": {
"id": {
"type": "string"
},
"label": {
"type": "string"
},
"category": {
"type": "string"
},
"minimumPhotos": {
"type": "integer"
},
"required": {
"type": "array",
"items": {
"type": "string"
}
},
"optional": {
"type": "array",
"items": {
"type": "string"
}
},
"conditionallyRequired": {
"type": "object",
"additionalProperties": {
"type": "object",
"required": [
"field",
"notEquals"
],
"properties": {
"field": {
"type": "string"
},
"notEquals": {
"type": "string"
}
}
}
}
}
}
}
}
}Pozostałe błędy API Błąd przetwarzania żądania.application/jsonSchemat object
| Nazwa | Typ | Wymagany | Opis |
|---|---|---|---|
code | string | Tak | — |
message | string | Tak | — |
requestId | string | Tak | — |
issues | object[] | Nie | — |
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 Brak prawidłowego klucza API.403 Brak zakresu wymaganego przez operację lub żądanie bez HTTPS na produkcji.429 Przekroczono limit zapytań. Sprawdź Retry-After.503 Dostęp jest zamknięty lub usługa jest chwilowo niedostępna. Sprawdź code.