TicketUserServices

<back to all web services

EventsSearchRequest

Requires Authentication
Requires any of the roles:Admin, TeamAdmin, MobileAppRequired permission:Tickets.Add
The following routes are available for this service:
POST/Event/Search
import Foundation
import ServiceStack

public class EventsSearchRequest : Codable
{
    public var name:String?
    public var externalID:String?
    public var externalIdType:String?

    required public init(){}
}

public class EventsResult : Codable
{
    public var items:[Event] = []
    public var statusCode:Int?
    public var message:String?

    required public init(){}
}

public class Event : Codable
{
    public var id:Int?
    public var name:String?
    public var Description:String?
    public var externalReference:String?
    public var timeOfEvent:Date?
    public var eventLocationId:Int?
    public var eventSeriesId:Int?
    public var eventOwnerId:Int?
    public var eventActive:Bool?
    public var defaultValues:String?
    public var externalReferenceType:String?
    public var postponedNoDate:Bool?
    public var awayTeamExternalId:String?
    public var sportGenderId:String?
    public var saleIsActive:Bool?
    public var seatingImageUrl:String?
    public var venueId:Int?
    public var awayTeamOwnerId:Int?
    public var detailedDescription:String?
    public var imageUrl:String?
    public var directAccessCode:String?
    public var imageUrl2:String?
    public var hideEvent:Bool?
    public var ownerCardsNotAllowed:Bool?
    public var endOfEvent:Date?
    public var endOfEventUTC:Date?
    public var timeZone:String?
    public var timeOfEventUTC:Date?

    required public init(){}
}


Swift EventsSearchRequest DTOs

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

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /Event/Search HTTP/1.1 
Host: stubbur-autoupdates-live.smartnewapis.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	name: String,
	externalID: String,
	externalIdType: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	items: 
	[
		{
			id: 0,
			name: String,
			description: String,
			externalReference: String,
			timeOfEvent: 0001-01-01,
			eventLocationId: 0,
			eventSeriesId: 0,
			eventOwnerId: 0,
			eventActive: False,
			defaultValues: String,
			externalReferenceType: String,
			postponedNoDate: False,
			awayTeamExternalId: String,
			sportGenderId: String,
			saleIsActive: False,
			seatingImageUrl: String,
			venueId: 0,
			awayTeamOwnerId: 0,
			detailedDescription: String,
			imageUrl: String,
			directAccessCode: String,
			imageUrl2: String,
			hideEvent: False,
			ownerCardsNotAllowed: False,
			endOfEvent: 0001-01-01,
			endOfEventUTC: 0001-01-01,
			timeZone: String,
			timeOfEventUTC: 0001-01-01
		}
	],
	statusCode: 0,
	message: String
}