| Requires any of the roles: | Admin, TeamAdmin | Required permission: | Tickets.Add |
| PUT | /extraInfo/form/{EventId} |
|---|
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports TicketUserServices.ServiceModel
Namespace Global
Namespace TicketUserServices.ServiceModel
Public Partial Class ExtraInfoError
Public Overridable Property FieldKey As String
Public Overridable Property Code As String
Public Overridable Property Message As String
End Class
Public Partial Class ExtraInfoFieldInput
Public Overridable Property Id As Nullable(Of Integer)
Public Overridable Property FieldKey As String
Public Overridable Property FieldType As String
Public Overridable Property LabelIs As String
Public Overridable Property LabelEn As String
Public Overridable Property PlaceholderIs As String
Public Overridable Property PlaceholderEn As String
Public Overridable Property IsRequired As Boolean
Public Overridable Property MaxLength As Integer
Public Overridable Property OptionsJson As String
Public Overridable Property SortOrder As Integer
End Class
Public Partial Class ExtraInfoFormSaveResult
Public Sub New()
Errors = New List(Of ExtraInfoError)
End Sub
Public Overridable Property Success As Boolean
Public Overridable Property Errors As List(Of ExtraInfoError)
End Class
Public Partial Class SaveExtraInfoForm
Public Sub New()
Fields = New List(Of ExtraInfoFieldInput)
End Sub
Public Overridable Property EventId As Integer
Public Overridable Property EventOwnerId As Integer
Public Overridable Property ShowAlert As Boolean
Public Overridable Property AlertTitleIs As String
Public Overridable Property AlertTitleEn As String
Public Overridable Property AlertBodyIs As String
Public Overridable Property AlertBodyEn As String
Public Overridable Property AlertButtonIs As String
Public Overridable Property AlertButtonEn As String
Public Overridable Property Fields As List(Of ExtraInfoFieldInput)
End Class
End Namespace
End Namespace
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
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: text/csv
Content-Type: text/csv
Content-Length: length
{"eventId":0,"eventOwnerId":0,"showAlert":false,"alertTitleIs":"String","alertTitleEn":"String","alertBodyIs":"String","alertBodyEn":"String","alertButtonIs":"String","alertButtonEn":"String","fields":[{"id":0,"fieldKey":"String","fieldType":"String","labelIs":"String","labelEn":"String","placeholderIs":"String","placeholderEn":"String","isRequired":false,"maxLength":0,"optionsJson":"String","sortOrder":0}]}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"success":false,"errors":[{"fieldKey":"String","code":"String","message":"String"}]}