| Required role: | Administrator |
| POST,OPTIONS | /v1/AgentStoreNameChange |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class AgentStoreNameChangeRequest
{
public String AgentStoreName = null;
public String AgentStoreNameNew = null;
public Integer AgentId = null;
public String getAgentStoreName() { return AgentStoreName; }
public AgentStoreNameChangeRequest setAgentStoreName(String value) { this.AgentStoreName = value; return this; }
public String getAgentStoreNameNew() { return AgentStoreNameNew; }
public AgentStoreNameChangeRequest setAgentStoreNameNew(String value) { this.AgentStoreNameNew = value; return this; }
public Integer getAgentId() { return AgentId; }
public AgentStoreNameChangeRequest setAgentId(Integer value) { this.AgentId = value; return this; }
}
public static class AgentStoreNameResponse
{
public ResponseStatus ResponseStatus = null;
public String AgentStoreName = null;
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public AgentStoreNameResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
public String getAgentStoreName() { return AgentStoreName; }
public AgentStoreNameResponse setAgentStoreName(String value) { this.AgentStoreName = value; return this; }
}
}
Java AgentStoreNameChangeRequest 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 /v1/AgentStoreNameChange HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
AgentStoreName: String,
AgentStoreNameNew: String,
AgentId: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
},
AgentStoreName: String
}