| Requires any of the roles: | Admin, TeamAdmin | Required permission: | Tickets.Add |
| POST | /SharedTicketLink/Extend |
|---|
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 SharedTicketLinkExtendRequest
Public Overridable Property Token As String
Public Overridable Property Id As Nullable(Of Integer)
Public Overridable Property ValidToDays As Integer
End Class
Public Partial Class SharedTicketLinkExtendResult
Public Overridable Property Success As Boolean
Public Overridable Property Token As String
Public Overridable Property Url As String
Public Overridable Property ValidTo As Nullable(Of Date)
Public Overridable Property Status As String
Public Overridable Property RecipientEmail As String
Public Overridable Property RecipientPhone As String
Public Overridable Property SeatsReblocked As Integer
Public Overridable Property StatusCode As Integer
Public Overridable Property Message As String
End Class
End Namespace
End Namespace
VB.NET SharedTicketLinkExtendRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /SharedTicketLink/Extend HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<SharedTicketLinkExtendRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
<Id>0</Id>
<Token>String</Token>
<ValidToDays>0</ValidToDays>
</SharedTicketLinkExtendRequest>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <SharedTicketLinkExtendResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel"> <Message>String</Message> <RecipientEmail>String</RecipientEmail> <RecipientPhone>String</RecipientPhone> <SeatsReblocked>0</SeatsReblocked> <Status>String</Status> <StatusCode>0</StatusCode> <Success>false</Success> <Token>String</Token> <Url>String</Url> <ValidTo>0001-01-01T00:00:00</ValidTo> </SharedTicketLinkExtendResult>