Referencja API

Dostęp produkcyjny zamknięty · 37 operacji

Pobierz typy ogłoszeń

GET/api/v1/listing-types

Typy 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

Przejdź do przykładu

Odpowiedzi

200 Typy ogłoszeń i wymagania formularza.
application/json
Schemat object
NazwaTypWymaganyOpis
formVersionintegerTak—
typesobject[]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/json
Schemat object
NazwaTypWymaganyOpis
codestringTak—
messagestringTak—
requestIdstringTak—
issuesobject[]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.

Obsługa błędów i limitów ↗