| Requires any of the roles: | Admin, TeamAdmin, MobileApp | Required permission: | Tickets.Add |
| GET PUT POST | /eventActivation | Change Event-Activation and TicketSalesActivation |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| EventId | body | int | No | |
| OwnerId | body | int | No | |
| EventIsActive | body | bool? | No | |
| TicketSaleIsActive | body | bool? | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| TicketType | form | EventSeriesOwnerTicketType | No | |
| StatusCode | form | int | No | |
| Message | form | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ID | form | int | No | |
| Name | form | string | No | |
| DefaultPrice | form | decimal | No | |
| SeriesId | form | int? | No | |
| OwnerId | form | int | No | |
| TicketTypeListOrder | form | int | No | |
| IsActive | form | bool? | No | |
| MaxTickets | form | int? | No | |
| TicketColor | form | string | No | |
| ShowUsedTickets | form | bool? | No | |
| CanOnlyBeBoughtWithTeamPass | form | bool? | No | |
| IsSpecialTicket | form | bool? | No | |
| SpecialTicketId | form | string | No | |
| OnlyForKsi | form | bool? | No | |
| TimestampCreated | form | DateTime? | No | |
| TimestampLastChanged | form | DateTime? | No | |
| TicketsForSalePerEvent | form | bool? | No | |
| ImageUrl | form | string | No | |
| HolderInfoRequired | form | bool? | No | |
| EventSeriesOwnerSeatingSectionId | form | int? | No | |
| CanOnlyBeBought | form | bool? | No | |
| CanNotBeBought | form | bool? | No | |
| BlockTransfer | form | bool? | No | |
| MaxTicketsPerTransaction | form | int? | No | |
| ForceSingleTickets | form | bool? | No | |
| OnlyForEvent | form | int? | No | |
| Currency | form | string | No |
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 /eventActivation HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"eventId":0,"ownerId":0,"eventIsActive":false,"ticketSaleIsActive":false}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"ticketType":{"id":0,"name":"String","defaultPrice":0,"seriesId":0,"ownerId":0,"ticketTypeListOrder":0,"isActive":false,"maxTickets":0,"ticketColor":"String","showUsedTickets":false,"canOnlyBeBoughtWithTeamPass":false,"isSpecialTicket":false,"specialTicketId":"String","onlyForKsi":false,"timestampCreated":"0001-01-01T00:00:00.0000000","timestampLastChanged":"0001-01-01T00:00:00.0000000","ticketsForSalePerEvent":false,"imageUrl":"String","holderInfoRequired":false,"eventSeriesOwnerSeatingSectionId":0,"canOnlyBeBought":false,"canNotBeBought":false,"blockTransfer":false,"maxTicketsPerTransaction":0,"forceSingleTickets":false,"onlyForEvent":0,"currency":"String"},"statusCode":0,"message":"String"}