TicketUserServices

<back to all web services

GetExtraInfoFormAdmin

Requires Authentication
Requires any of the roles:Admin, TeamAdmin, MobileAppRequired permission:Tickets.Add
The following routes are available for this service:
GET/extraInfo/form/{EventId}/admin
import datetime
import decimal
from marshmallow.fields import *
from servicestack import *
from typing import *
from dataclasses import dataclass, field
from dataclasses_json import dataclass_json, LetterCase, Undefined, config
from enum import Enum, IntEnum


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class ExtraInfoFieldInfo:
    id: Optional[int] = None
    field_key: Optional[str] = None
    field_type: Optional[str] = None
    label_is: Optional[str] = None
    label_en: Optional[str] = None
    placeholder_is: Optional[str] = None
    placeholder_en: Optional[str] = None
    is_required: Optional[bool] = None
    max_length: Optional[int] = None
    options_json: Optional[str] = None
    scope: Optional[str] = None
    sort_order: Optional[int] = None
    is_system: Optional[bool] = None
    is_active: Optional[bool] = None
    has_answers: Optional[bool] = None


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class ExtraInfoFormResult:
    event_id: Optional[int] = None
    show_alert: Optional[bool] = None
    alert_title_is: Optional[str] = None
    alert_title_en: Optional[str] = None
    alert_body_is: Optional[str] = None
    alert_body_en: Optional[str] = None
    alert_button_is: Optional[str] = None
    alert_button_en: Optional[str] = None
    is_default: Optional[bool] = None
    fields: Optional[List[ExtraInfoFieldInfo]] = None


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class GetExtraInfoFormAdmin:
    event_id: Optional[int] = None

Python GetExtraInfoFormAdmin DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /extraInfo/form/{EventId}/admin HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<ExtraInfoFormResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <AlertBodyEn>String</AlertBodyEn>
  <AlertBodyIs>String</AlertBodyIs>
  <AlertButtonEn>String</AlertButtonEn>
  <AlertButtonIs>String</AlertButtonIs>
  <AlertTitleEn>String</AlertTitleEn>
  <AlertTitleIs>String</AlertTitleIs>
  <EventId>0</EventId>
  <Fields>
    <ExtraInfoFieldInfo>
      <FieldKey>String</FieldKey>
      <FieldType>String</FieldType>
      <HasAnswers>false</HasAnswers>
      <Id>0</Id>
      <IsActive>false</IsActive>
      <IsRequired>false</IsRequired>
      <IsSystem>false</IsSystem>
      <LabelEn>String</LabelEn>
      <LabelIs>String</LabelIs>
      <MaxLength>0</MaxLength>
      <OptionsJson>String</OptionsJson>
      <PlaceholderEn>String</PlaceholderEn>
      <PlaceholderIs>String</PlaceholderIs>
      <Scope>String</Scope>
      <SortOrder>0</SortOrder>
    </ExtraInfoFieldInfo>
  </Fields>
  <IsDefault>false</IsDefault>
  <ShowAlert>false</ShowAlert>
</ExtraInfoFormResult>