Trendsic Platform Service

<back to all web services

MessagingWorkflowActionRequest

Requires Authentication
The following routes are available for this service:
POST/v1/messaging/workflows/{WorkflowId}/replace
POST/v1/messaging/workflows/{WorkflowId}/keep
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class MessagingWorkflowActionRequest
    {
        public Integer WorkflowId = null;
        
        public Integer getWorkflowId() { return WorkflowId; }
        public MessagingWorkflowActionRequest setWorkflowId(Integer value) { this.WorkflowId = value; return this; }
    }

    public static class MessagingCompileResponse
    {
        public ResponseStatus ResponseStatus = null;
        public ArrayList<CompileResult> Results = new ArrayList<CompileResult>();
        
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public MessagingCompileResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
        public ArrayList<CompileResult> getResults() { return Results; }
        public MessagingCompileResponse setResults(ArrayList<CompileResult> value) { this.Results = value; return this; }
    }

    public static class CompileResult
    {
        public String RuleKey = null;
        public UUID BranchId = null;
        public UUID LineId = null;
        public String StepId = null;
        public Integer WorkflowId = null;
        public Integer VersionNum = null;
        public String Action = null;
        public String Name = null;
        public String Note = null;
        public Boolean Customized = null;
        
        public String getRuleKey() { return RuleKey; }
        public CompileResult setRuleKey(String value) { this.RuleKey = value; return this; }
        public UUID getBranchId() { return BranchId; }
        public CompileResult setBranchId(UUID value) { this.BranchId = value; return this; }
        public UUID getLineId() { return LineId; }
        public CompileResult setLineId(UUID value) { this.LineId = value; return this; }
        public String getStepId() { return StepId; }
        public CompileResult setStepId(String value) { this.StepId = value; return this; }
        public Integer getWorkflowId() { return WorkflowId; }
        public CompileResult setWorkflowId(Integer value) { this.WorkflowId = value; return this; }
        public Integer getVersionNum() { return VersionNum; }
        public CompileResult setVersionNum(Integer value) { this.VersionNum = value; return this; }
        public String getAction() { return Action; }
        public CompileResult setAction(String value) { this.Action = value; return this; }
        public String getName() { return Name; }
        public CompileResult setName(String value) { this.Name = value; return this; }
        public String getNote() { return Note; }
        public CompileResult setNote(String value) { this.Note = value; return this; }
        public Boolean isCustomized() { return Customized; }
        public CompileResult setCustomized(Boolean value) { this.Customized = value; return this; }
    }

}

Java MessagingWorkflowActionRequest 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 /v1/messaging/workflows/{WorkflowId}/replace HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	WorkflowId: 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
		}
	},
	Results: 
	[
		{
			RuleKey: String,
			BranchId: 00000000000000000000000000000000,
			LineId: 00000000000000000000000000000000,
			StepId: String,
			WorkflowId: 0,
			VersionNum: 0,
			Action: String,
			Name: String,
			Note: String,
			Customized: False
		}
	]
}