| Requires any of the roles: | Admin, TeamAdmin | Required permission: | Tickets.Add |
| PUT | /EventOwnerTrackingDestination/{Id}/AccessToken |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class EventOwnerTrackingDestinationSetAccessTokenRequest
{
public Integer id = null;
public Integer eventOwnerId = null;
public String accessToken = null;
public Boolean serverSideEnabled = null;
public String testEventCode = null;
public Integer getId() { return id; }
public EventOwnerTrackingDestinationSetAccessTokenRequest setId(Integer value) { this.id = value; return this; }
public Integer getEventOwnerId() { return eventOwnerId; }
public EventOwnerTrackingDestinationSetAccessTokenRequest setEventOwnerId(Integer value) { this.eventOwnerId = value; return this; }
public String getAccessToken() { return accessToken; }
public EventOwnerTrackingDestinationSetAccessTokenRequest setAccessToken(String value) { this.accessToken = value; return this; }
public Boolean isServerSideEnabled() { return serverSideEnabled; }
public EventOwnerTrackingDestinationSetAccessTokenRequest setServerSideEnabled(Boolean value) { this.serverSideEnabled = value; return this; }
public String getTestEventCode() { return testEventCode; }
public EventOwnerTrackingDestinationSetAccessTokenRequest setTestEventCode(String value) { this.testEventCode = value; return this; }
}
public static class EventOwnerTrackingDestinationAccessTokenResult
{
public Boolean hasAccessToken = null;
public Boolean serverSideEnabled = null;
public String testEventCode = null;
public Boolean encryptionConfigured = null;
public Integer statusCode = null;
public String message = null;
public Boolean isHasAccessToken() { return hasAccessToken; }
public EventOwnerTrackingDestinationAccessTokenResult setHasAccessToken(Boolean value) { this.hasAccessToken = value; return this; }
public Boolean isServerSideEnabled() { return serverSideEnabled; }
public EventOwnerTrackingDestinationAccessTokenResult setServerSideEnabled(Boolean value) { this.serverSideEnabled = value; return this; }
public String getTestEventCode() { return testEventCode; }
public EventOwnerTrackingDestinationAccessTokenResult setTestEventCode(String value) { this.testEventCode = value; return this; }
public Boolean isEncryptionConfigured() { return encryptionConfigured; }
public EventOwnerTrackingDestinationAccessTokenResult setEncryptionConfigured(Boolean value) { this.encryptionConfigured = value; return this; }
public Integer getStatusCode() { return statusCode; }
public EventOwnerTrackingDestinationAccessTokenResult setStatusCode(Integer value) { this.statusCode = value; return this; }
public String getMessage() { return message; }
public EventOwnerTrackingDestinationAccessTokenResult setMessage(String value) { this.message = value; return this; }
}
}
Java EventOwnerTrackingDestinationSetAccessTokenRequest DTOs
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.
PUT /EventOwnerTrackingDestination/{Id}/AccessToken HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"id":0,"eventOwnerId":0,"accessToken":"String","serverSideEnabled":false,"testEventCode":"String"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"hasAccessToken":false,"serverSideEnabled":false,"testEventCode":"String","encryptionConfigured":false,"statusCode":0,"message":"String"}