TicketUserServices

<back to all web services

SaveExtraInfoForm

Requires Authentication
Requires any of the roles:Admin, TeamAdminRequired permission:Tickets.Add
The following routes are available for this service:
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; }
    }

}

C# SaveExtraInfoForm DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + 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>