| Requires any of the roles: | Admin, TeamAdmin | Required permission: | Tickets.Add |
| PUT | /extraInfo/form/{EventId} |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class SaveExtraInfoForm
{
public Integer eventId = null;
public Integer eventOwnerId = null;
public Boolean showAlert = null;
public String alertTitleIs = null;
public String alertTitleEn = null;
public String alertBodyIs = null;
public String alertBodyEn = null;
public String alertButtonIs = null;
public String alertButtonEn = null;
public ArrayList<ExtraInfoFieldInput> fields = null;
public Integer getEventId() { return eventId; }
public SaveExtraInfoForm setEventId(Integer value) { this.eventId = value; return this; }
public Integer getEventOwnerId() { return eventOwnerId; }
public SaveExtraInfoForm setEventOwnerId(Integer value) { this.eventOwnerId = value; return this; }
public Boolean isShowAlert() { return showAlert; }
public SaveExtraInfoForm setShowAlert(Boolean value) { this.showAlert = value; return this; }
public String getAlertTitleIs() { return alertTitleIs; }
public SaveExtraInfoForm setAlertTitleIs(String value) { this.alertTitleIs = value; return this; }
public String getAlertTitleEn() { return alertTitleEn; }
public SaveExtraInfoForm setAlertTitleEn(String value) { this.alertTitleEn = value; return this; }
public String getAlertBodyIs() { return alertBodyIs; }
public SaveExtraInfoForm setAlertBodyIs(String value) { this.alertBodyIs = value; return this; }
public String getAlertBodyEn() { return alertBodyEn; }
public SaveExtraInfoForm setAlertBodyEn(String value) { this.alertBodyEn = value; return this; }
public String getAlertButtonIs() { return alertButtonIs; }
public SaveExtraInfoForm setAlertButtonIs(String value) { this.alertButtonIs = value; return this; }
public String getAlertButtonEn() { return alertButtonEn; }
public SaveExtraInfoForm setAlertButtonEn(String value) { this.alertButtonEn = value; return this; }
public ArrayList<ExtraInfoFieldInput> getFields() { return fields; }
public SaveExtraInfoForm setFields(ArrayList<ExtraInfoFieldInput> value) { this.fields = value; return this; }
}
public static class ExtraInfoFieldInput
{
public Integer id = null;
public String fieldKey = null;
public String fieldType = null;
public String labelIs = null;
public String labelEn = null;
public String placeholderIs = null;
public String placeholderEn = null;
public Boolean isRequired = null;
public Integer maxLength = null;
public String optionsJson = null;
public Integer sortOrder = null;
public Integer getId() { return id; }
public ExtraInfoFieldInput setId(Integer value) { this.id = value; return this; }
public String getFieldKey() { return fieldKey; }
public ExtraInfoFieldInput setFieldKey(String value) { this.fieldKey = value; return this; }
public String getFieldType() { return fieldType; }
public ExtraInfoFieldInput setFieldType(String value) { this.fieldType = value; return this; }
public String getLabelIs() { return labelIs; }
public ExtraInfoFieldInput setLabelIs(String value) { this.labelIs = value; return this; }
public String getLabelEn() { return labelEn; }
public ExtraInfoFieldInput setLabelEn(String value) { this.labelEn = value; return this; }
public String getPlaceholderIs() { return placeholderIs; }
public ExtraInfoFieldInput setPlaceholderIs(String value) { this.placeholderIs = value; return this; }
public String getPlaceholderEn() { return placeholderEn; }
public ExtraInfoFieldInput setPlaceholderEn(String value) { this.placeholderEn = value; return this; }
public Boolean getIsRequired() { return isRequired; }
public ExtraInfoFieldInput setIsRequired(Boolean value) { this.isRequired = value; return this; }
public Integer getMaxLength() { return maxLength; }
public ExtraInfoFieldInput setMaxLength(Integer value) { this.maxLength = value; return this; }
public String getOptionsJson() { return optionsJson; }
public ExtraInfoFieldInput setOptionsJson(String value) { this.optionsJson = value; return this; }
public Integer getSortOrder() { return sortOrder; }
public ExtraInfoFieldInput setSortOrder(Integer value) { this.sortOrder = value; return this; }
}
public static class ExtraInfoFormSaveResult
{
public Boolean success = null;
public ArrayList<ExtraInfoError> errors = null;
public Boolean isSuccess() { return success; }
public ExtraInfoFormSaveResult setSuccess(Boolean value) { this.success = value; return this; }
public ArrayList<ExtraInfoError> getErrors() { return errors; }
public ExtraInfoFormSaveResult setErrors(ArrayList<ExtraInfoError> value) { this.errors = value; return this; }
}
public static class ExtraInfoError
{
public String fieldKey = null;
public String code = null;
public String message = null;
public String getFieldKey() { return fieldKey; }
public ExtraInfoError setFieldKey(String value) { this.fieldKey = value; return this; }
public String getCode() { return code; }
public ExtraInfoError setCode(String value) { this.code = value; return this; }
public String getMessage() { return message; }
public ExtraInfoError setMessage(String value) { this.message = value; return this; }
}
}
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>