API

Pobierz ustawienia strony

GET/api/crm/v2/sites_settingsv2
operationId: sitesSettings.default

Autoryzacja

api-token + language + role

Parametry zapytania

branch_idintegerwymagane

Przykład: 8810

Odpowiedzi

OK

object
statusstringwymagane

Wartości:successerror

Przykład: success

dataobject
filtersobjectwymagane
branch_idobject (FilterSelectInteger)
valueinteger

Przykład: 8920

typestringwymagane

Przykład: select

optionarray of object
valueintegerwymagane

Przykład: 8920

namestringwymagane

Przykład: Green Basket | Kaliningrad

modestring (FilterMode)

Jak interfejs obsługuje filtr; zwykły filtr nie ma mode. force_shown — zawsze widoczny, nie można ukryć. value_required — punkt wejścia do sekcji: zawsze widoczny, nie może mieć pustej wartości (dopóki wartość nie zostanie wybrana, lista jest pusta; nie ma opcji „wszystko”), ogólne resetowanie go nie czyści.

Wartości:force_shownvalue_required

Przykład: value_required

noticestring

Przykład: message

yandex_metrikastring

Przykład: 314159

listarray of object
idstringwymagane

Złożony identyfikator: [page]_[platform]_[type]_[section]

Przykład: all_site_desktop_head

pagestringwymagane

Wartości:allaboutfeedbackmainmobidel-trackerpopularrecommendspecial-offersvacancies

Przykład: all

platformstringwymagane

Wartości:allsitesocial-app

Przykład: all

typestringwymagane

Wartości:alldesktopmobile

Przykład: all

sectionstringwymagane

Wartości:headbody

Przykład: head

htmlstringwymagane

Przykład: <meta name='robots' content='index, follow'>