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
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using TicketUserServices.ServiceModel;
using TicketUserServices.ServiceModel.Types;

namespace TicketUserServices.ServiceModel
{
    public partial class EventResult
    {
        public virtual Event Item { get; set; }
        public virtual int StatusCode { get; set; }
        public virtual string Message { get; set; }
    }

    public partial class EventUpdateRequest
    {
        public virtual Event Item { get; set; }
    }

}

namespace TicketUserServices.ServiceModel.Types
{
    public partial class Event
    {
        public virtual int ID { get; set; }
        public virtual string Name { get; set; }
        public virtual string Description { get; set; }
        public virtual string ExternalReference { get; set; }
        public virtual DateTime TimeOfEvent { get; set; }
        public virtual int? EventLocationId { get; set; }
        public virtual int? EventSeriesId { get; set; }
        public virtual int? EventOwnerId { get; set; }
        public virtual bool EventActive { get; set; }
        public virtual string DefaultValues { get; set; }
        public virtual string ExternalReferenceType { get; set; }
        public virtual bool? PostponedNoDate { get; set; }
        public virtual string AwayTeamExternalId { get; set; }
        public virtual string SportGenderId { get; set; }
        public virtual bool? SaleIsActive { get; set; }
        public virtual string SeatingImageUrl { get; set; }
        public virtual int? VenueId { get; set; }
        public virtual int? AwayTeamOwnerId { get; set; }
        public virtual string DetailedDescription { get; set; }
        public virtual string ImageUrl { get; set; }
        public virtual string DirectAccessCode { get; set; }
        public virtual string ImageUrl2 { get; set; }
        public virtual bool? HideEvent { get; set; }
        public virtual bool? OwnerCardsNotAllowed { get; set; }
        public virtual DateTime? EndOfEvent { get; set; }
        public virtual DateTime? EndOfEventUTC { get; set; }
        public virtual string TimeZone { get; set; }
        public virtual DateTime? TimeOfEventUTC { get; set; }
    }

}

C# EventUpdateRequest DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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: application/json
Content-Type: application/json
Content-Length: length

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

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