| POST,OPTIONS | /v1/records/mapping-rules/{RuleId}/run |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class MappingRuleRunRequest
{
public Integer RuleId = null;
public Boolean DryRun = null;
public Integer getRuleId() { return RuleId; }
public MappingRuleRunRequest setRuleId(Integer value) { this.RuleId = value; return this; }
public Boolean isDryRun() { return DryRun; }
public MappingRuleRunRequest setDryRun(Boolean value) { this.DryRun = value; return this; }
}
public static class MappingRuleRunResponse
{
public ResponseStatus ResponseStatus = null;
public ArrayList<String> Matched = new ArrayList<String>();
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public MappingRuleRunResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
public ArrayList<String> getMatched() { return Matched; }
public MappingRuleRunResponse setMatched(ArrayList<String> value) { this.Matched = value; return this; }
}
}
Java MappingRuleRunRequest 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/records/mapping-rules/{RuleId}/run HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
RuleId: 0,
DryRun: False
}
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
}
},
Matched:
[
String
]
}