| Requires any of the roles: | Admin, TeamAdmin | Required permission: | Tickets.Add |
| PUT | /extraInfo/form/{EventId} |
|---|
import Foundation
import ServiceStack
public class SaveExtraInfoForm : Codable
{
public var eventId:Int?
public var eventOwnerId:Int?
public var showAlert:Bool?
public var alertTitleIs:String?
public var alertTitleEn:String?
public var alertBodyIs:String?
public var alertBodyEn:String?
public var alertButtonIs:String?
public var alertButtonEn:String?
public var fields:[ExtraInfoFieldInput] = []
required public init(){}
}
public class ExtraInfoFieldInput : Codable
{
public var id:Int?
public var fieldKey:String?
public var fieldType:String?
public var labelIs:String?
public var labelEn:String?
public var placeholderIs:String?
public var placeholderEn:String?
public var isRequired:Bool?
public var maxLength:Int?
public var optionsJson:String?
public var sortOrder:Int?
required public init(){}
}
public class ExtraInfoFormSaveResult : Codable
{
public var success:Bool?
public var errors:[ExtraInfoError] = []
required public init(){}
}
public class ExtraInfoError : Codable
{
public var fieldKey:String?
public var code:String?
public var message:String?
required public init(){}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
PUT /extraInfo/form/{EventId} HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<SaveExtraInfoForm 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>
<EventOwnerId>0</EventOwnerId>
<Fields>
<ExtraInfoFieldInput>
<FieldKey>String</FieldKey>
<FieldType>String</FieldType>
<Id>0</Id>
<IsRequired>false</IsRequired>
<LabelEn>String</LabelEn>
<LabelIs>String</LabelIs>
<MaxLength>0</MaxLength>
<OptionsJson>String</OptionsJson>
<PlaceholderEn>String</PlaceholderEn>
<PlaceholderIs>String</PlaceholderIs>
<SortOrder>0</SortOrder>
</ExtraInfoFieldInput>
</Fields>
<ShowAlert>false</ShowAlert>
</SaveExtraInfoForm>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<ExtraInfoFormSaveResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
<Errors>
<ExtraInfoError>
<Code>String</Code>
<FieldKey>String</FieldKey>
<Message>String</Message>
</ExtraInfoError>
</Errors>
<Success>false</Success>
</ExtraInfoFormSaveResult>