TicketUserServices

<back to all web services

EventUpdateRequest

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


open class EventUpdateRequest
{
    var item:Event? = null
}

open class Event
{
    var id:Int? = null
    var name:String? = null
    var description:String? = null
    var externalReference:String? = null
    var timeOfEvent:Date? = null
    var eventLocationId:Int? = null
    var eventSeriesId:Int? = null
    var eventOwnerId:Int? = null
    var eventActive:Boolean? = null
    var defaultValues:String? = null
    var externalReferenceType:String? = null
    var postponedNoDate:Boolean? = null
    var awayTeamExternalId:String? = null
    var sportGenderId:String? = null
    var saleIsActive:Boolean? = null
    var seatingImageUrl:String? = null
    var venueId:Int? = null
    var awayTeamOwnerId:Int? = null
    var detailedDescription:String? = null
    var imageUrl:String? = null
    var directAccessCode:String? = null
    var imageUrl2:String? = null
    var hideEvent:Boolean? = null
    var ownerCardsNotAllowed:Boolean? = null
    var endOfEvent:Date? = null
    var endOfEventUTC:Date? = null
    var timeZone:String? = null
    var timeOfEventUTC:Date? = null
}

open class EventResult
{
    var item:Event? = null
    var statusCode:Int? = null
    var message:String? = null
}

Kotlin EventUpdateRequest 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.

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

{
	item: 
	{
		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
	}
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	item: 
	{
		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
}