Requires the role: | Admin |
GET POST | /createExternalGateCodes |
---|
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports TicketUserServices.ServiceModel
Namespace Global
Namespace TicketUserServices.ServiceModel
Public Partial Class ExternalGatesCreateCodesRequest
Public Overridable Property EventOwnerId As Nullable(Of Integer)
Public Overridable Property EventId As Nullable(Of Integer)
Public Overridable Property FromDate As Nullable(Of Date)
Public Overridable Property ToDate As Nullable(Of Date)
Public Overridable Property MinimumTotalCodes As Integer
Public Overridable Property MinimumAvalableCodes As Nullable(Of Integer)
End Class
Public Partial Class ExternalGatesCreateCodesResponse
Public Overridable Property CodesCreated As Integer
Public Overridable Property OwnersCreated As Integer
Public Overridable Property EventsCreated As Integer
Public Overridable Property StatusCode As Integer
Public Overridable Property Message As String
End Class
End Namespace
End Namespace
VB.NET ExternalGatesCreateCodesRequest 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 /createExternalGateCodes HTTP/1.1
Host: stubbur-autoupdates-live.smartnewapis.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
eventOwnerId: 0,
eventId: 0,
fromDate: 0001-01-01,
toDate: 0001-01-01,
minimumTotalCodes: 0,
minimumAvalableCodes: 0
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { codesCreated: 0, ownersCreated: 0, eventsCreated: 0, statusCode: 0, message: String }