POST api/questionnaire/SiteDataAction

Получение и изменение данных в составе и функционале сайта-опросника

Request Information

URI Parameters

None.

Body Parameters

SiteDataActionRequest
NameDescriptionTypeAdditional information
ActionType

Тип действия

string

None.

Questionnaire

Идентификатор опроса

integer

None.

ConfigId

Идентификатор конфига

integer

None.

PageConfigId

Идентификатор конфига сайта (состав страниц)

integer

None.

PageConfigListId

Конфиг страницы сайта

integer

None.

PageId

Идентификатор страницы

integer

None.

LevelStep

Очередность страницы в конфиге

byte

None.

Active

Статус активности записи

boolean

None.

Title

Заголовок на странице

string

None.

Subtitle

Подзаголовок на странице

string

None.

Text

Текст на странице

string

None.

ImageMain

Ссылка на изображение на странице

string

None.

FormPhoneShown

Показывать или нет поле "номер телефона" в форме

boolean

None.

FormPhoneRequire

Обязательное или нет для заполнения поле "номер телефона"

boolean

None.

FormNameShown

Показывать или нет поле "имя" в форме

boolean

None.

FormNameRequire

Обязательное или нет для заполнения поле "имя"

boolean

None.

FormEmailShown

Показывать или нет поле "номер телефона" в форме

boolean

None.

FormEmailRequire

Обязательное или нет для заполнения поле "номер телефона"

boolean

None.

FormUrlAgreement

Ссылка на обработку персональных данных

string

None.

FormTextAgreement

Текст обработки персональных данных

string

None.

DownloadShown

Показывать или нет иконку скачивания файла

boolean

None.

UrlDownload

Ссылка, по которой можно скачать файл

string

None.

LoadShown

Показывать или нет иконку загрузки файла

boolean

None.

UrlRedirect

Урл, на который нужно переадресовать пользователя после успешного заполнения формы

string

None.

Operator

Идентификатор оператора программы лояльности

integer

None.

Token

Токен пользователя, который инициирует данный запрос

integer

None.

SiteCode

Уникальный код виджета по продаже подарочных сертификатов, который инициирует запрос

string

None.

Request Formats

application/json, text/json

Sample:
{
  "ActionType": "sample string 1",
  "Questionnaire": 1,
  "ConfigId": 1,
  "PageConfigId": 1,
  "PageConfigListId": 1,
  "PageId": 1,
  "LevelStep": 64,
  "Active": true,
  "Title": "sample string 2",
  "Subtitle": "sample string 3",
  "Text": "sample string 4",
  "ImageMain": "sample string 5",
  "FormPhoneShown": true,
  "FormPhoneRequire": true,
  "FormNameShown": true,
  "FormNameRequire": true,
  "FormEmailShown": true,
  "FormEmailRequire": true,
  "FormUrlAgreement": "sample string 6",
  "FormTextAgreement": "sample string 7",
  "DownloadShown": true,
  "UrlDownload": "sample string 8",
  "LoadShown": true,
  "UrlRedirect": "sample string 9",
  "Operator": 1,
  "Token": 1,
  "SiteCode": "sample string 10"
}

application/xml, text/xml

Sample:
<SiteDataActionRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Request.QuestionnaireRequest">
  <Operator xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">1</Operator>
  <SiteCode xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">sample string 10</SiteCode>
  <Token xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">1</Token>
  <ActionType>sample string 1</ActionType>
  <Active>true</Active>
  <ConfigId>1</ConfigId>
  <DownloadShown>true</DownloadShown>
  <FormEmailRequire>true</FormEmailRequire>
  <FormEmailShown>true</FormEmailShown>
  <FormNameRequire>true</FormNameRequire>
  <FormNameShown>true</FormNameShown>
  <FormPhoneRequire>true</FormPhoneRequire>
  <FormPhoneShown>true</FormPhoneShown>
  <FormTextAgreement>sample string 7</FormTextAgreement>
  <FormUrlAgreement>sample string 6</FormUrlAgreement>
  <ImageMain>sample string 5</ImageMain>
  <LevelStep>64</LevelStep>
  <LoadShown>true</LoadShown>
  <PageConfigId>1</PageConfigId>
  <PageConfigListId>1</PageConfigListId>
  <PageId>1</PageId>
  <Questionnaire>1</Questionnaire>
  <Subtitle>sample string 3</Subtitle>
  <Text>sample string 4</Text>
  <Title>sample string 2</Title>
  <UrlDownload>sample string 8</UrlDownload>
  <UrlRedirect>sample string 9</UrlRedirect>
</SiteDataActionRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

SiteDataActionResponse
NameDescriptionTypeAdditional information
PageConfigs

Массив конфигураций страниц

Collection of QuestionnairePageConfigRow

None.

Pages

Массив страниц

Collection of QuestionnairePageRow

None.

PageList

Массив элементов страницы

Collection of QuestionnairePageListRow

None.

ErrorCode

Код ошибки

integer

None.

Message

Сообщение об ошибке

string

None.

Response Formats

application/json, text/json

Sample:
{
  "PageConfigs": [
    {
      "QuestionnairePageConfigList": 1,
      "Pagename": "sample string 1",
      "PageId": 64,
      "LevelStep": 64
    },
    {
      "QuestionnairePageConfigList": 1,
      "Pagename": "sample string 1",
      "PageId": 64,
      "LevelStep": 64
    }
  ],
  "Pages": [
    {
      "Id": 1,
      "PageId": 64,
      "Name": "sample string 1"
    },
    {
      "Id": 1,
      "PageId": 64,
      "Name": "sample string 1"
    }
  ],
  "PageList": [
    {
      "Title": "sample string 1",
      "Subtitle": "sample string 2",
      "ImageMain": "sample string 3",
      "Text": "sample string 4",
      "FormPhoneShown": true,
      "FormPhoneRequire": true,
      "FormNameShown": true,
      "FormNameRequire": true,
      "FormEmailShown": true,
      "FormEmailRequire": true,
      "FormUrlAgreement": "sample string 5",
      "FormTextAgreement": "sample string 6",
      "DownloadShown": true,
      "UrlDownload": "sample string 7",
      "LoadShown": true,
      "UrlRedirect": "sample string 8"
    },
    {
      "Title": "sample string 1",
      "Subtitle": "sample string 2",
      "ImageMain": "sample string 3",
      "Text": "sample string 4",
      "FormPhoneShown": true,
      "FormPhoneRequire": true,
      "FormNameShown": true,
      "FormNameRequire": true,
      "FormEmailShown": true,
      "FormEmailRequire": true,
      "FormUrlAgreement": "sample string 5",
      "FormTextAgreement": "sample string 6",
      "DownloadShown": true,
      "UrlDownload": "sample string 7",
      "LoadShown": true,
      "UrlRedirect": "sample string 8"
    }
  ],
  "ErrorCode": 1,
  "Message": "sample string 2"
}

application/xml, text/xml

Sample:
<SiteDataActionResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Response.QuestionnaireResponse">
  <ErrorCode xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">1</ErrorCode>
  <Message xmlns="http://schemas.datacontract.org/2004/07/LCManagerPartner.Implementation.Abstractions">sample string 2</Message>
  <PageConfigs>
    <SiteDataActionResponse.QuestionnairePageConfigRow>
      <LevelStep>64</LevelStep>
      <PageId>64</PageId>
      <Pagename>sample string 1</Pagename>
      <QuestionnairePageConfigList>1</QuestionnairePageConfigList>
    </SiteDataActionResponse.QuestionnairePageConfigRow>
    <SiteDataActionResponse.QuestionnairePageConfigRow>
      <LevelStep>64</LevelStep>
      <PageId>64</PageId>
      <Pagename>sample string 1</Pagename>
      <QuestionnairePageConfigList>1</QuestionnairePageConfigList>
    </SiteDataActionResponse.QuestionnairePageConfigRow>
  </PageConfigs>
  <PageList>
    <SiteDataActionResponse.QuestionnairePageListRow>
      <DownloadShown>true</DownloadShown>
      <FormEmailRequire>true</FormEmailRequire>
      <FormEmailShown>true</FormEmailShown>
      <FormNameRequire>true</FormNameRequire>
      <FormNameShown>true</FormNameShown>
      <FormPhoneRequire>true</FormPhoneRequire>
      <FormPhoneShown>true</FormPhoneShown>
      <FormTextAgreement>sample string 6</FormTextAgreement>
      <FormUrlAgreement>sample string 5</FormUrlAgreement>
      <ImageMain>sample string 3</ImageMain>
      <LoadShown>true</LoadShown>
      <Subtitle>sample string 2</Subtitle>
      <Text>sample string 4</Text>
      <Title>sample string 1</Title>
      <UrlDownload>sample string 7</UrlDownload>
      <UrlRedirect>sample string 8</UrlRedirect>
    </SiteDataActionResponse.QuestionnairePageListRow>
    <SiteDataActionResponse.QuestionnairePageListRow>
      <DownloadShown>true</DownloadShown>
      <FormEmailRequire>true</FormEmailRequire>
      <FormEmailShown>true</FormEmailShown>
      <FormNameRequire>true</FormNameRequire>
      <FormNameShown>true</FormNameShown>
      <FormPhoneRequire>true</FormPhoneRequire>
      <FormPhoneShown>true</FormPhoneShown>
      <FormTextAgreement>sample string 6</FormTextAgreement>
      <FormUrlAgreement>sample string 5</FormUrlAgreement>
      <ImageMain>sample string 3</ImageMain>
      <LoadShown>true</LoadShown>
      <Subtitle>sample string 2</Subtitle>
      <Text>sample string 4</Text>
      <Title>sample string 1</Title>
      <UrlDownload>sample string 7</UrlDownload>
      <UrlRedirect>sample string 8</UrlRedirect>
    </SiteDataActionResponse.QuestionnairePageListRow>
  </PageList>
  <Pages>
    <SiteDataActionResponse.QuestionnairePageRow>
      <Id>1</Id>
      <Name>sample string 1</Name>
      <PageId>64</PageId>
    </SiteDataActionResponse.QuestionnairePageRow>
    <SiteDataActionResponse.QuestionnairePageRow>
      <Id>1</Id>
      <Name>sample string 1</Name>
      <PageId>64</PageId>
    </SiteDataActionResponse.QuestionnairePageRow>
  </Pages>
</SiteDataActionResponse>