TicketUserServices

<back to all web services

EventCreateRequest

Requires Authentication
Requires any of the roles:Admin, TeamAdmin, MobileAppRequired permission:Tickets.Add
The following routes are available for this service:
POST/Event
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class EventCreateRequest
    {
        public Event item = null;
        
        public Event getItem() { return item; }
        public EventCreateRequest setItem(Event value) { this.item = value; return this; }
    }

    public static class Event
    {
        public Integer id = null;
        public String name = null;
        public String description = null;
        public String externalReference = null;
        public Date timeOfEvent = null;
        public Integer eventLocationId = null;
        public Integer eventSeriesId = null;
        public Integer eventOwnerId = null;
        public Boolean eventActive = null;
        public String defaultValues = null;
        public String externalReferenceType = null;
        public Boolean postponedNoDate = null;
        public String awayTeamExternalId = null;
        public String sportGenderId = null;
        public Boolean saleIsActive = null;
        public String seatingImageUrl = null;
        public Integer venueId = null;
        public Integer awayTeamOwnerId = null;
        public String detailedDescription = null;
        public String imageUrl = null;
        public String directAccessCode = null;
        public String imageUrl2 = null;
        public Boolean hideEvent = null;
        public Boolean ownerCardsNotAllowed = null;
        public Date endOfEvent = null;
        public Date endOfEventUTC = null;
        public String timeZone = null;
        public Date timeOfEventUTC = null;
        
        public Integer getId() { return id; }
        public Event setId(Integer value) { this.id = value; return this; }
        public String getName() { return name; }
        public Event setName(String value) { this.name = value; return this; }
        public String getDescription() { return description; }
        public Event setDescription(String value) { this.description = value; return this; }
        public String getExternalReference() { return externalReference; }
        public Event setExternalReference(String value) { this.externalReference = value; return this; }
        public Date getTimeOfEvent() { return timeOfEvent; }
        public Event setTimeOfEvent(Date value) { this.timeOfEvent = value; return this; }
        public Integer getEventLocationId() { return eventLocationId; }
        public Event setEventLocationId(Integer value) { this.eventLocationId = value; return this; }
        public Integer getEventSeriesId() { return eventSeriesId; }
        public Event setEventSeriesId(Integer value) { this.eventSeriesId = value; return this; }
        public Integer getEventOwnerId() { return eventOwnerId; }
        public Event setEventOwnerId(Integer value) { this.eventOwnerId = value; return this; }
        public Boolean isEventActive() { return eventActive; }
        public Event setEventActive(Boolean value) { this.eventActive = value; return this; }
        public String getDefaultValues() { return defaultValues; }
        public Event setDefaultValues(String value) { this.defaultValues = value; return this; }
        public String getExternalReferenceType() { return externalReferenceType; }
        public Event setExternalReferenceType(String value) { this.externalReferenceType = value; return this; }
        public Boolean isPostponedNoDate() { return postponedNoDate; }
        public Event setPostponedNoDate(Boolean value) { this.postponedNoDate = value; return this; }
        public String getAwayTeamExternalId() { return awayTeamExternalId; }
        public Event setAwayTeamExternalId(String value) { this.awayTeamExternalId = value; return this; }
        public String getSportGenderId() { return sportGenderId; }
        public Event setSportGenderId(String value) { this.sportGenderId = value; return this; }
        public Boolean isSaleIsActive() { return saleIsActive; }
        public Event setSaleIsActive(Boolean value) { this.saleIsActive = value; return this; }
        public String getSeatingImageUrl() { return seatingImageUrl; }
        public Event setSeatingImageUrl(String value) { this.seatingImageUrl = value; return this; }
        public Integer getVenueId() { return venueId; }
        public Event setVenueId(Integer value) { this.venueId = value; return this; }
        public Integer getAwayTeamOwnerId() { return awayTeamOwnerId; }
        public Event setAwayTeamOwnerId(Integer value) { this.awayTeamOwnerId = value; return this; }
        public String getDetailedDescription() { return detailedDescription; }
        public Event setDetailedDescription(String value) { this.detailedDescription = value; return this; }
        public String getImageUrl() { return imageUrl; }
        public Event setImageUrl(String value) { this.imageUrl = value; return this; }
        public String getDirectAccessCode() { return directAccessCode; }
        public Event setDirectAccessCode(String value) { this.directAccessCode = value; return this; }
        public String getImageUrl2() { return imageUrl2; }
        public Event setImageUrl2(String value) { this.imageUrl2 = value; return this; }
        public Boolean isHideEvent() { return hideEvent; }
        public Event setHideEvent(Boolean value) { this.hideEvent = value; return this; }
        public Boolean isOwnerCardsNotAllowed() { return ownerCardsNotAllowed; }
        public Event setOwnerCardsNotAllowed(Boolean value) { this.ownerCardsNotAllowed = value; return this; }
        public Date getEndOfEvent() { return endOfEvent; }
        public Event setEndOfEvent(Date value) { this.endOfEvent = value; return this; }
        public Date getEndOfEventUTC() { return endOfEventUTC; }
        public Event setEndOfEventUTC(Date value) { this.endOfEventUTC = value; return this; }
        public String getTimeZone() { return timeZone; }
        public Event setTimeZone(String value) { this.timeZone = value; return this; }
        public Date getTimeOfEventUTC() { return timeOfEventUTC; }
        public Event setTimeOfEventUTC(Date value) { this.timeOfEventUTC = value; return this; }
    }

    public static class EventResult
    {
        public Event item = null;
        public Integer statusCode = null;
        public String message = null;
        
        public Event getItem() { return item; }
        public EventResult setItem(Event value) { this.item = value; return this; }
        public Integer getStatusCode() { return statusCode; }
        public EventResult setStatusCode(Integer value) { this.statusCode = value; return this; }
        public String getMessage() { return message; }
        public EventResult setMessage(String value) { this.message = value; return this; }
    }

}

Java EventCreateRequest 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.

POST /Event HTTP/1.1 
Host: stubbur-autoupdates-live.smartnewapis.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<EventCreateRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <Item xmlns:d2p1="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel.Types">
    <d2p1:AwayTeamExternalId>String</d2p1:AwayTeamExternalId>
    <d2p1:AwayTeamOwnerId>0</d2p1:AwayTeamOwnerId>
    <d2p1:DefaultValues>String</d2p1:DefaultValues>
    <d2p1:Description>String</d2p1:Description>
    <d2p1:DetailedDescription>String</d2p1:DetailedDescription>
    <d2p1:DirectAccessCode>String</d2p1:DirectAccessCode>
    <d2p1:EndOfEvent>0001-01-01T00:00:00</d2p1:EndOfEvent>
    <d2p1:EndOfEventUTC>0001-01-01T00:00:00</d2p1:EndOfEventUTC>
    <d2p1:EventActive>false</d2p1:EventActive>
    <d2p1:EventLocationId>0</d2p1:EventLocationId>
    <d2p1:EventOwnerId>0</d2p1:EventOwnerId>
    <d2p1:EventSeriesId>0</d2p1:EventSeriesId>
    <d2p1:ExternalReference>String</d2p1:ExternalReference>
    <d2p1:ExternalReferenceType>String</d2p1:ExternalReferenceType>
    <d2p1:HideEvent>false</d2p1:HideEvent>
    <d2p1:ID>0</d2p1:ID>
    <d2p1:ImageUrl>String</d2p1:ImageUrl>
    <d2p1:ImageUrl2>String</d2p1:ImageUrl2>
    <d2p1:Name>String</d2p1:Name>
    <d2p1:OwnerCardsNotAllowed>false</d2p1:OwnerCardsNotAllowed>
    <d2p1:PostponedNoDate>false</d2p1:PostponedNoDate>
    <d2p1:SaleIsActive>false</d2p1:SaleIsActive>
    <d2p1:SeatingImageUrl>String</d2p1:SeatingImageUrl>
    <d2p1:SportGenderId>String</d2p1:SportGenderId>
    <d2p1:TimeOfEvent>0001-01-01T00:00:00</d2p1:TimeOfEvent>
    <d2p1:TimeOfEventUTC>0001-01-01T00:00:00</d2p1:TimeOfEventUTC>
    <d2p1:TimeZone>String</d2p1:TimeZone>
    <d2p1:VenueId>0</d2p1:VenueId>
  </Item>
</EventCreateRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<EventResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <Item xmlns:d2p1="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel.Types">
    <d2p1:AwayTeamExternalId>String</d2p1:AwayTeamExternalId>
    <d2p1:AwayTeamOwnerId>0</d2p1:AwayTeamOwnerId>
    <d2p1:DefaultValues>String</d2p1:DefaultValues>
    <d2p1:Description>String</d2p1:Description>
    <d2p1:DetailedDescription>String</d2p1:DetailedDescription>
    <d2p1:DirectAccessCode>String</d2p1:DirectAccessCode>
    <d2p1:EndOfEvent>0001-01-01T00:00:00</d2p1:EndOfEvent>
    <d2p1:EndOfEventUTC>0001-01-01T00:00:00</d2p1:EndOfEventUTC>
    <d2p1:EventActive>false</d2p1:EventActive>
    <d2p1:EventLocationId>0</d2p1:EventLocationId>
    <d2p1:EventOwnerId>0</d2p1:EventOwnerId>
    <d2p1:EventSeriesId>0</d2p1:EventSeriesId>
    <d2p1:ExternalReference>String</d2p1:ExternalReference>
    <d2p1:ExternalReferenceType>String</d2p1:ExternalReferenceType>
    <d2p1:HideEvent>false</d2p1:HideEvent>
    <d2p1:ID>0</d2p1:ID>
    <d2p1:ImageUrl>String</d2p1:ImageUrl>
    <d2p1:ImageUrl2>String</d2p1:ImageUrl2>
    <d2p1:Name>String</d2p1:Name>
    <d2p1:OwnerCardsNotAllowed>false</d2p1:OwnerCardsNotAllowed>
    <d2p1:PostponedNoDate>false</d2p1:PostponedNoDate>
    <d2p1:SaleIsActive>false</d2p1:SaleIsActive>
    <d2p1:SeatingImageUrl>String</d2p1:SeatingImageUrl>
    <d2p1:SportGenderId>String</d2p1:SportGenderId>
    <d2p1:TimeOfEvent>0001-01-01T00:00:00</d2p1:TimeOfEvent>
    <d2p1:TimeOfEventUTC>0001-01-01T00:00:00</d2p1:TimeOfEventUTC>
    <d2p1:TimeZone>String</d2p1:TimeZone>
    <d2p1:VenueId>0</d2p1:VenueId>
  </Item>
  <Message>String</Message>
  <StatusCode>0</StatusCode>
</EventResult>