| POST | /v4/group-affiliate-tokens/migrate |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
import com.google.gson.annotations.*;
import com.google.gson.reflect.*;
public class dtos
{
@DataContract
public static class MigrateGroupOverridesAffiliateTokensRequest
{
@DataMember(Name="sourceGroupId")
@SerializedName("sourceGroupId")
public Long sourceGroupId = null;
@DataMember(Name="targetGroupId")
@SerializedName("targetGroupId")
public Long targetGroupId = null;
public Long getSourceGroupId() { return sourceGroupId; }
public MigrateGroupOverridesAffiliateTokensRequest setSourceGroupId(Long value) { this.sourceGroupId = value; return this; }
public Long getTargetGroupId() { return targetGroupId; }
public MigrateGroupOverridesAffiliateTokensRequest setTargetGroupId(Long value) { this.targetGroupId = value; return this; }
}
@DataContract
public static class MigrateGroupOverridesAffiliateTokensResponse
{
@DataMember(Name="affiliateOverridesMigrated")
@SerializedName("affiliateOverridesMigrated")
public Integer affiliateOverridesMigrated = null;
@DataMember(Name="responseStatus")
@SerializedName("responseStatus")
public ResponseStatus responseStatus = null;
public Integer getAffiliateOverridesMigrated() { return affiliateOverridesMigrated; }
public MigrateGroupOverridesAffiliateTokensResponse setAffiliateOverridesMigrated(Integer value) { this.affiliateOverridesMigrated = value; return this; }
public ResponseStatus getResponseStatus() { return responseStatus; }
public MigrateGroupOverridesAffiliateTokensResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; }
}
}
Java MigrateGroupOverridesAffiliateTokensRequest DTOs
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 /v4/group-affiliate-tokens/migrate HTTP/1.1
Host: affiliation-api-zane.dev.platform.georiot.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
sourceGroupId: 0,
targetGroupId: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
affiliateOverridesMigrated: 0,
responseStatus:
{
errorCode: String,
message: String,
stackTrace: String,
errors:
[
{
errorCode: String,
fieldName: String,
message: String,
meta:
{
String: String
}
}
],
meta:
{
String: String
}
}
}