Requires any of the roles: | Admin, TeamAdmin, MobileApp | Required permission: | Tickets.Add |
POST | /Event/Search |
---|
export class Event
{
public id?: number;
public name?: string;
public description?: string;
public externalReference?: string;
public timeOfEvent?: string;
public eventLocationId?: number;
public eventSeriesId?: number;
public eventOwnerId?: number;
public eventActive?: boolean;
public defaultValues?: string;
public externalReferenceType?: string;
public postponedNoDate?: boolean;
public awayTeamExternalId?: string;
public sportGenderId?: string;
public saleIsActive?: boolean;
public seatingImageUrl?: string;
public venueId?: number;
public awayTeamOwnerId?: number;
public detailedDescription?: string;
public imageUrl?: string;
public directAccessCode?: string;
public imageUrl2?: string;
public hideEvent?: boolean;
public ownerCardsNotAllowed?: boolean;
public endOfEvent?: string;
public endOfEventUTC?: string;
public timeZone?: string;
public timeOfEventUTC?: string;
public constructor(init?: Partial<Event>) { (Object as any).assign(this, init); }
}
export class EventsResult
{
public items?: Event[];
public statusCode?: number;
public message?: string;
public constructor(init?: Partial<EventsResult>) { (Object as any).assign(this, init); }
}
export class EventsSearchRequest
{
public name?: string;
public externalID?: string;
public externalIdType?: string;
public constructor(init?: Partial<EventsSearchRequest>) { (Object as any).assign(this, init); }
}
TypeScript EventsSearchRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
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/csv
Content-Type: text/csv
Content-Length: length
{"name":"String","externalID":"String","externalIdType":"String"}
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length {"items":[{"id":0,"name":"String","description":"String","externalReference":"String","timeOfEvent":"0001-01-01T00:00:00.0000000","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-01T00:00:00.0000000","endOfEventUTC":"0001-01-01T00:00:00.0000000","timeZone":"String","timeOfEventUTC":"0001-01-01T00:00:00.0000000"}],"statusCode":0,"message":"String"}