Requires any of the roles: | Admin, TeamAdmin, MobileApp | Required permission: | Tickets.Add |
GET PUT POST | /eventActivation | Change Event-Activation and TicketSalesActivation |
---|
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 EventActivationRequest
{
public virtual int EventId { get; set; }
public virtual int OwnerId { get; set; }
public virtual bool? EventIsActive { get; set; }
public virtual bool? TicketSaleIsActive { get; set; }
}
public partial class OwnerTicketTypeResult
{
public virtual EventSeriesOwnerTicketType TicketType { get; set; }
public virtual int StatusCode { get; set; }
public virtual string Message { get; set; }
}
}
namespace TicketUserServices.ServiceModel.Types
{
public partial class EventSeriesOwnerTicketType
{
public virtual int ID { get; set; }
public virtual string Name { get; set; }
public virtual decimal DefaultPrice { get; set; }
public virtual int? SeriesId { get; set; }
public virtual int OwnerId { get; set; }
public virtual int TicketTypeListOrder { get; set; }
public virtual bool? IsActive { get; set; }
public virtual int? MaxTickets { get; set; }
public virtual string TicketColor { get; set; }
public virtual bool? ShowUsedTickets { get; set; }
public virtual bool? CanOnlyBeBoughtWithTeamPass { get; set; }
public virtual bool? IsSpecialTicket { get; set; }
public virtual string SpecialTicketId { get; set; }
public virtual bool? OnlyForKsi { get; set; }
public virtual DateTime? TimestampCreated { get; set; }
public virtual DateTime? TimestampLastChanged { get; set; }
public virtual bool? TicketsForSalePerEvent { get; set; }
public virtual string ImageUrl { get; set; }
public virtual bool? HolderInfoRequired { get; set; }
public virtual int? EventSeriesOwnerSeatingSectionId { get; set; }
public virtual bool? CanOnlyBeBought { get; set; }
public virtual bool? CanNotBeBought { get; set; }
public virtual bool? BlockTransfer { get; set; }
public virtual int? MaxTicketsPerTransaction { get; set; }
public virtual bool? ForceSingleTickets { get; set; }
public virtual int? OnlyForEvent { get; set; }
public virtual string Currency { get; set; }
}
}
C# EventActivationRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /eventActivation HTTP/1.1
Host: stubbur-autoupdates-live.smartnewapis.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
eventId: 0,
ownerId: 0,
eventIsActive: False,
ticketSaleIsActive: False
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { ticketType: { id: 0, name: String, defaultPrice: 0, seriesId: 0, ownerId: 0, ticketTypeListOrder: 0, isActive: False, maxTickets: 0, ticketColor: String, showUsedTickets: False, canOnlyBeBoughtWithTeamPass: False, isSpecialTicket: False, specialTicketId: String, onlyForKsi: False, timestampCreated: 0001-01-01, timestampLastChanged: 0001-01-01, ticketsForSalePerEvent: False, imageUrl: String, holderInfoRequired: False, eventSeriesOwnerSeatingSectionId: 0, canOnlyBeBought: False, canNotBeBought: False, blockTransfer: False, maxTicketsPerTransaction: 0, forceSingleTickets: False, onlyForEvent: 0, currency: String }, statusCode: 0, message: String }