Zamówienia - Dodatkowe pola

Aktualizuje dodatkowe pole zamówienia

Aktualizacja właściwości dodatkowego pola

put/orders_fields/{field_id}

Request

  • Base URL
    https://demo.sellasist.pl/api/v1
  • URL
    https://demo.sellasist.pl/api/v1/orders_fields/{field_id}
  • Auth
    API key in header apiKey

Path parameters

field_idunknown required

Identyfikator dodatkowego pola

Request body

file_typestring

Rozszerzenia pliku (image/document - Tylko dla typu files)

maxnumber

Maksymalna wartość pola (Tylko dla typu number)

minnumber

Minimalna wartość pola (Tylko dla typu number)

namestring

Nazwa pola

option_typestring

Wielokrotność wyboru (one/multiple - Tylko dla typu option)

typestring

Typ pola (text/number/files/option/checkbox)

Example request

{
  "file_type": "image",
  "max": 5,
  "min": 0.01,
  "name": "dodatkowe_pole",
  "option_type": "multiple",
  "type": "option",
  "values": [
    {
      "title": "Tak"
    },
    {
      "title": "Nie"
    }
  ]
}

Response

Sukces

idinteger

Example response

{
  "id": 20
}

Changes

No recorded changes to this operation across all 5 revisions of this API.