Requires any of the roles: | Admin, TeamAdmin, MobileApp, Admin, TeamAdmin, MobileApp | Required permissions: | Tickets.Add, Tickets.Add |
GET PUT POST | /ownerSeatingSection | Add or change Seating sections | Id only when changing (PUT) |
---|
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 OwnerSeatingSectionRequest
{
public virtual EventSeriesOwnerSeatingSection SeatingSection { get; set; }
}
public partial class OwnerSeatingSectionResult
{
public virtual EventSeriesOwnerSeatingSection SeatingSection { get; set; }
public virtual int StatusCode { get; set; }
public virtual string Message { get; set; }
}
}
namespace TicketUserServices.ServiceModel.Types
{
public partial class EventSeriesOwnerSeatingSection
{
public virtual int ID { get; set; }
public virtual string Name { get; set; }
public virtual int? SeriesId { get; set; }
public virtual int OwnerId { get; set; }
public virtual int? LocationId { get; set; }
public virtual bool IsActive { get; set; }
public virtual int MaxTickets { get; set; }
public virtual DateTime? TimestampCreated { get; set; }
public virtual bool HasRows { get; set; }
public virtual bool HasSeats { get; set; }
public virtual bool? RowsAreAlphabetical { get; set; }
public virtual bool? SeatsAreAlphabetical { get; set; }
public virtual string SeatStart { get; set; }
public virtual string RowStart { get; set; }
public virtual int? SeatSkips { get; set; }
public virtual int? RowSkips { get; set; }
}
}
C# OwnerSeatingSectionRequest 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 /ownerSeatingSection HTTP/1.1
Host: stubbur-autoupdates-live.smartnewapis.com
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"seatingSection":{"id":0,"name":"String","seriesId":0,"ownerId":0,"locationId":0,"isActive":false,"maxTickets":0,"timestampCreated":"0001-01-01T00:00:00.0000000","hasRows":false,"hasSeats":false,"rowsAreAlphabetical":false,"seatsAreAlphabetical":false,"seatStart":"String","rowStart":"String","seatSkips":0,"rowSkips":0}}
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length {"seatingSection":{"id":0,"name":"String","seriesId":0,"ownerId":0,"locationId":0,"isActive":false,"maxTickets":0,"timestampCreated":"0001-01-01T00:00:00.0000000","hasRows":false,"hasSeats":false,"rowsAreAlphabetical":false,"seatsAreAlphabetical":false,"seatStart":"String","rowStart":"String","seatSkips":0,"rowSkips":0},"statusCode":0,"message":"String"}