digitaluapi

<back to all web services

DeleteBatchDataAdd

Requires Authentication
Requires any of the roles:Client, Admin, Partner
The following routes are available for this service:
POST/delete_batch_data
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    @DataContract
    public static class DeleteBatchDataAdd
    {
        @DataMember(Order=2)
        public Integer RecordCount = null;

        @DataMember(Order=3)
        public String Data = null;

        @DataMember(Order=4)
        public Boolean HasError = null;

        @DataMember(Order=5)
        public Boolean Merged = null;

        @DataMember(Order=6)
        public Long BatchId = null;

        @DataMember(Order=7)
        public String Jsondata = null;
        
        public Integer getRecordCount() { return RecordCount; }
        public DeleteBatchDataAdd setRecordCount(Integer value) { this.RecordCount = value; return this; }
        public String getData() { return Data; }
        public DeleteBatchDataAdd setData(String value) { this.Data = value; return this; }
        public Boolean isHasError() { return HasError; }
        public DeleteBatchDataAdd setHasError(Boolean value) { this.HasError = value; return this; }
        public Boolean isMerged() { return Merged; }
        public DeleteBatchDataAdd setMerged(Boolean value) { this.Merged = value; return this; }
        public Long getBatchId() { return BatchId; }
        public DeleteBatchDataAdd setBatchId(Long value) { this.BatchId = value; return this; }
        public String getJsondata() { return Jsondata; }
        public DeleteBatchDataAdd setJsondata(String value) { this.Jsondata = value; return this; }
    }

    public static class DeleteBatchDataAddResponse
    {
        @DataMember(Order=2)
        public Integer RecordCount = null;

        @DataMember(Order=3)
        public String Data = null;

        @DataMember(Order=4)
        public Boolean HasError = null;

        @DataMember(Order=5)
        public Boolean Merged = null;

        @DataMember(Order=6)
        public Long BatchId = null;

        @DataMember(Order=7)
        public String Jsondata = null;

        @DataMember(Order=9)
        public ResponseStatus ResponseStatus = null;
        
        public Integer getRecordCount() { return RecordCount; }
        public DeleteBatchDataAddResponse setRecordCount(Integer value) { this.RecordCount = value; return this; }
        public String getData() { return Data; }
        public DeleteBatchDataAddResponse setData(String value) { this.Data = value; return this; }
        public Boolean isHasError() { return HasError; }
        public DeleteBatchDataAddResponse setHasError(Boolean value) { this.HasError = value; return this; }
        public Boolean isMerged() { return Merged; }
        public DeleteBatchDataAddResponse setMerged(Boolean value) { this.Merged = value; return this; }
        public Long getBatchId() { return BatchId; }
        public DeleteBatchDataAddResponse setBatchId(Long value) { this.BatchId = value; return this; }
        public String getJsondata() { return Jsondata; }
        public DeleteBatchDataAddResponse setJsondata(String value) { this.Jsondata = value; return this; }
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public DeleteBatchDataAddResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
    }

}

Java DeleteBatchDataAdd DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /delete_batch_data HTTP/1.1 
Host: duengageapi.uat.scadsoftware.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	RecordCount: 0,
	Data: String,
	HasError: False,
	Merged: False,
	BatchId: 0,
	Jsondata: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	RecordCount: 0,
	Data: String,
	HasError: False,
	Merged: False,
	BatchId: 0,
	Jsondata: String,
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	}
}