| Requires any of the roles: | Client, Admin, Partner |
| PUT | /insert_batch_data/{Id} |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
@DataContract
public static class InsertBatchDataEdit
{
@DataMember(Order=1)
@Validate(Validator="NotNull")
public Long Id = null;
@DataMember(Order=2)
public String Data = null;
@DataMember(Order=3)
public Boolean HasError = null;
@DataMember(Order=4)
public Boolean Merged = null;
@DataMember(Order=5)
public Long BatchId = null;
@DataMember(Order=6)
public String Jsondata = null;
@DataMember(Order=7)
public String ErrorData = null;
public Long getId() { return Id; }
public InsertBatchDataEdit setId(Long value) { this.Id = value; return this; }
public String getData() { return Data; }
public InsertBatchDataEdit setData(String value) { this.Data = value; return this; }
public Boolean isHasError() { return HasError; }
public InsertBatchDataEdit setHasError(Boolean value) { this.HasError = value; return this; }
public Boolean isMerged() { return Merged; }
public InsertBatchDataEdit setMerged(Boolean value) { this.Merged = value; return this; }
public Long getBatchId() { return BatchId; }
public InsertBatchDataEdit setBatchId(Long value) { this.BatchId = value; return this; }
public String getJsondata() { return Jsondata; }
public InsertBatchDataEdit setJsondata(String value) { this.Jsondata = value; return this; }
public String getErrorData() { return ErrorData; }
public InsertBatchDataEdit setErrorData(String value) { this.ErrorData = value; return this; }
}
public static class InsertBatchDataEditResponse
{
@DataMember(Order=1)
public Long Id = null;
@DataMember(Order=2)
public String Data = null;
@DataMember(Order=3)
public Boolean HasError = null;
@DataMember(Order=4)
public Boolean Merged = null;
@DataMember(Order=5)
public Long BatchId = null;
@DataMember(Order=6)
public String Jsondata = null;
@DataMember(Order=7)
public String ErrorData = null;
@DataMember(Order=9)
public ResponseStatus ResponseStatus = null;
public Long getId() { return Id; }
public InsertBatchDataEditResponse setId(Long value) { this.Id = value; return this; }
public String getData() { return Data; }
public InsertBatchDataEditResponse setData(String value) { this.Data = value; return this; }
public Boolean isHasError() { return HasError; }
public InsertBatchDataEditResponse setHasError(Boolean value) { this.HasError = value; return this; }
public Boolean isMerged() { return Merged; }
public InsertBatchDataEditResponse setMerged(Boolean value) { this.Merged = value; return this; }
public Long getBatchId() { return BatchId; }
public InsertBatchDataEditResponse setBatchId(Long value) { this.BatchId = value; return this; }
public String getJsondata() { return Jsondata; }
public InsertBatchDataEditResponse setJsondata(String value) { this.Jsondata = value; return this; }
public String getErrorData() { return ErrorData; }
public InsertBatchDataEditResponse setErrorData(String value) { this.ErrorData = value; return this; }
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public InsertBatchDataEditResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
}
}
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.
PUT /insert_batch_data/{Id} HTTP/1.1
Host: duengageapi.uat.scadsoftware.com
Accept: application/json
Content-Type: application/json
Content-Length: length
{"Id":0,"Data":"String","HasError":false,"Merged":false,"BatchId":0,"Jsondata":"String","ErrorData":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"Id":0,"Data":"String","HasError":false,"Merged":false,"BatchId":0,"Jsondata":"String","ErrorData":"String","ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}