| Requires any of the roles: | Admin, TeamAdmin, MobileApp | Required permission: | Tickets.Add |
| POST | /TicketTypePriceSchedule |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| OwnerId | body | int | No | |
| Item | body | TicketTypePriceSchedule | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ID | form | int | No | |
| TicketTypeId | form | int | No | |
| IsOwnerTicketType | form | bool | No | |
| EventId | form | int? | No | |
| PresalePrice | form | decimal | No | |
| RegularPrice | form | decimal | No | |
| PresaleEndsUTC | form | DateTime? | No | |
| DaysBeforeEvent | form | int? | No | |
| CutoffLocalTime | form | TimeSpan | No | |
| IsActive | form | bool | No | |
| BackfilledFromLegacyConfig | form | bool | No | |
| CreatedByUserId | form | int? | No | |
| TimestampCreated | form | DateTime | No | |
| TimestampLastChanged | form | DateTime | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Item | form | TicketTypePriceScheduleInfo | No | |
| StatusCode | form | int | No | |
| Message | form | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Schedule | form | TicketTypePriceSchedule | No | |
| TicketTypeName | form | string | No | |
| OwnerId | form | int | No | |
| ResolvedAgainstEventId | form | int? | No | |
| ResolvedAgainstEventTime | form | DateTime? | No | |
| CurrentPrice | form | decimal? | No | |
| IsPresaleNow | form | bool | No | |
| PresaleEndsUTC | form | DateTime? | No |
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 /TicketTypePriceSchedule HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
ownerId: 0,
item:
{
id: 0,
ticketTypeId: 0,
isOwnerTicketType: False,
eventId: 0,
presalePrice: 0,
regularPrice: 0,
presaleEndsUTC: 0001-01-01,
daysBeforeEvent: 0,
cutoffLocalTime: PT0S,
isActive: False,
backfilledFromLegacyConfig: False,
createdByUserId: 0,
timestampCreated: 0001-01-01,
timestampLastChanged: 0001-01-01
}
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
item:
{
schedule:
{
id: 0,
ticketTypeId: 0,
isOwnerTicketType: False,
eventId: 0,
presalePrice: 0,
regularPrice: 0,
presaleEndsUTC: 0001-01-01,
daysBeforeEvent: 0,
cutoffLocalTime: PT0S,
isActive: False,
backfilledFromLegacyConfig: False,
createdByUserId: 0,
timestampCreated: 0001-01-01,
timestampLastChanged: 0001-01-01
},
ticketTypeName: String,
ownerId: 0,
resolvedAgainstEventId: 0,
resolvedAgainstEventTime: 0001-01-01,
currentPrice: 0,
isPresaleNow: False,
presaleEndsUTC: 0001-01-01
},
statusCode: 0,
message: String
}