Requires the role: | Admin |
GET POST | /createExternalGateCodes |
---|
namespace TicketUserServices.ServiceModel
open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
[<AllowNullLiteral>]
type ExternalGatesCreateCodesResponse() =
member val CodesCreated:Int32 = new Int32() with get,set
member val OwnersCreated:Int32 = new Int32() with get,set
member val EventsCreated:Int32 = new Int32() with get,set
member val StatusCode:Int32 = new Int32() with get,set
member val Message:String = null with get,set
[<AllowNullLiteral>]
type ExternalGatesCreateCodesRequest() =
member val EventOwnerId:Nullable<Int32> = new Nullable<Int32>() with get,set
member val EventId:Nullable<Int32> = new Nullable<Int32>() with get,set
member val FromDate:Nullable<DateTime> = new Nullable<DateTime>() with get,set
member val ToDate:Nullable<DateTime> = new Nullable<DateTime>() with get,set
member val MinimumTotalCodes:Int32 = new Int32() with get,set
member val MinimumAvalableCodes:Nullable<Int32> = new Nullable<Int32>() with get,set
F# 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 }