| POST | /cmd/organizations/change/integration-instance-connection |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class ChangeIntegrationInstanceConnection
{
public String id = null;
public String instanceId = null;
public IntegrationService service = null;
public IntegrationConnection connection = null;
public String getId() { return id; }
public ChangeIntegrationInstanceConnection setId(String value) { this.id = value; return this; }
public String getInstanceId() { return instanceId; }
public ChangeIntegrationInstanceConnection setInstanceId(String value) { this.instanceId = value; return this; }
public IntegrationService getService() { return service; }
public ChangeIntegrationInstanceConnection setService(IntegrationService value) { this.service = value; return this; }
public IntegrationConnection getConnection() { return connection; }
public ChangeIntegrationInstanceConnection setConnection(IntegrationConnection value) { this.connection = value; return this; }
}
public static enum IntegrationService
{
@SerializedName("1") Wallet(1),
@SerializedName("2") PartnerApi(2);
private final int value;
IntegrationService(final int intValue) { value = intValue; }
public int getValue() { return value; }
}
public static class IntegrationConnection
{
public String url = null;
public String credentialsRef = null;
public String getUrl() { return url; }
public IntegrationConnection setUrl(String value) { this.url = value; return this; }
public String getCredentialsRef() { return credentialsRef; }
public IntegrationConnection setCredentialsRef(String value) { this.credentialsRef = value; return this; }
}
}
Java ChangeIntegrationInstanceConnection DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /cmd/organizations/change/integration-instance-connection HTTP/1.1
Host: api.bettor.webhop.biz
Accept: application/json
Content-Type: application/json
Content-Length: length
{"id":"String","instanceId":"String","service":1,"connection":{"url":"String","credentialsRef":"String"}}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}