| Requires any of the roles: | Admin, TeamAdmin | Required permission: | Tickets.Add |
| POST | /EventSeating/TableActions |
|---|
import Foundation
import ServiceStack
public class EventSeatingTableActionsRequest : Codable
{
public var eventId:Int?
public var sectionIds:[Int] = []
public var action:String?
public var note:String?
public var blockedNote:String?
public var tablesOnly:Bool?
required public init(){}
}
public class EventSeatingTableActionsResult : Codable
{
public var statusCode:Int?
public var message:String?
public var action:String?
public var eventId:Int?
public var results:[EventSeatingTableActionResult] = []
public var totals:EventSeatingTableActionsTotals?
public var elapsedMs:Int?
required public init(){}
}
public class EventSeatingTableActionResult : Codable
{
public var sectionId:Int?
public var sectionName:String?
public var isTable:Bool?
public var ok:Bool?
public var error:String?
public var blockedSeatIds:[Int] = []
public var unblockedSeatIds:[Int] = []
public var skippedSeatIds:[Int] = []
public var alreadyBlockedSeatIds:[Int] = []
public var isHidden:Bool?
public var showSeats:Bool?
public var note:String?
public var viewType:String?
required public init(){}
}
public class EventSeatingTableActionsTotals : Codable
{
public var blocked:Int?
public var unblocked:Int?
public var skipped:Int?
public var sections:Int?
public var failed:Int?
required public init(){}
}
Swift EventSeatingTableActionsRequest 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 /EventSeating/TableActions HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
eventId: 0,
sectionIds:
[
0
],
action: String,
note: String,
blockedNote: String,
tablesOnly: False
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
statusCode: 0,
message: String,
action: String,
eventId: 0,
results:
[
{
sectionId: 0,
sectionName: String,
isTable: False,
ok: False,
error: String,
blockedSeatIds:
[
0
],
unblockedSeatIds:
[
0
],
skippedSeatIds:
[
0
],
alreadyBlockedSeatIds:
[
0
],
isHidden: False,
showSeats: False,
note: String,
viewType: String
}
],
totals:
{
blocked: 0,
unblocked: 0,
skipped: 0,
sections: 0,
failed: 0
},
elapsedMs: 0
}