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 .jsv suffix or ?format=jsv

HTTP + JSV

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: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	eventId: 0,
	showAlert: False,
	alertTitleIs: String,
	alertTitleEn: String,
	alertBodyIs: String,
	alertBodyEn: String,
	alertButtonIs: String,
	alertButtonEn: String,
	isDefault: False,
	fields: 
	[
		{
			id: 0,
			fieldKey: String,
			fieldType: String,
			labelIs: String,
			labelEn: String,
			placeholderIs: String,
			placeholderEn: String,
			isRequired: False,
			maxLength: 0,
			optionsJson: String,
			scope: String,
			sortOrder: 0,
			isSystem: False,
			isActive: False,
			hasAnswers: False
		}
	]
}