| Requires any of the roles: | Admin, TeamAdmin | Required permission: | Tickets.Add |
| PUT | /extraInfo/form/{EventId} |
|---|
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using TicketUserServices.ServiceModel;
namespace TicketUserServices.ServiceModel
{
public partial class ExtraInfoError
{
public virtual string FieldKey { get; set; }
public virtual string Code { get; set; }
public virtual string Message { get; set; }
}
public partial class ExtraInfoFieldInput
{
public virtual int? Id { get; set; }
public virtual string FieldKey { get; set; }
public virtual string FieldType { get; set; }
public virtual string LabelIs { get; set; }
public virtual string LabelEn { get; set; }
public virtual string PlaceholderIs { get; set; }
public virtual string PlaceholderEn { get; set; }
public virtual bool IsRequired { get; set; }
public virtual int MaxLength { get; set; }
public virtual string OptionsJson { get; set; }
public virtual int SortOrder { get; set; }
}
public partial class ExtraInfoFormSaveResult
{
public ExtraInfoFormSaveResult()
{
Errors = new List<ExtraInfoError>{};
}
public virtual bool Success { get; set; }
public virtual List<ExtraInfoError> Errors { get; set; }
}
public partial class SaveExtraInfoForm
{
public SaveExtraInfoForm()
{
Fields = new List<ExtraInfoFieldInput>{};
}
public virtual int EventId { get; set; }
public virtual int EventOwnerId { get; set; }
public virtual bool ShowAlert { get; set; }
public virtual string AlertTitleIs { get; set; }
public virtual string AlertTitleEn { get; set; }
public virtual string AlertBodyIs { get; set; }
public virtual string AlertBodyEn { get; set; }
public virtual string AlertButtonIs { get; set; }
public virtual string AlertButtonEn { get; set; }
public virtual List<ExtraInfoFieldInput> Fields { get; set; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
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/json
Content-Type: application/json
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: application/json
Content-Length: length
{"success":false,"errors":[{"fieldKey":"String","code":"String","message":"String"}]}