| Requires any of the roles: | Client, Admin, Partner |
| POST | /custom_actions |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
@DataContract
public static class CustomActionsAdd
{
@DataMember(Order=2)
@Validate(Validator="NotNull")
public Integer TenantsId = null;
@DataMember(Order=3)
@Validate(Validator="NotNull")
public Long ActionsId = null;
@DataMember(Order=4)
@Validate(Validator="NotNull")
public String FormMetaData = null;
@DataMember(Order=5)
@Validate(Validator="NotNull")
public String ResultData = null;
public Integer getTenantsId() { return TenantsId; }
public CustomActionsAdd setTenantsId(Integer value) { this.TenantsId = value; return this; }
public Long getActionsId() { return ActionsId; }
public CustomActionsAdd setActionsId(Long value) { this.ActionsId = value; return this; }
public String getFormMetaData() { return FormMetaData; }
public CustomActionsAdd setFormMetaData(String value) { this.FormMetaData = value; return this; }
public String getResultData() { return ResultData; }
public CustomActionsAdd setResultData(String value) { this.ResultData = value; return this; }
}
public static class CustomActionsAddResponse
{
@DataMember(Order=2)
public Integer TenantsId = null;
@DataMember(Order=3)
public Long ActionsId = null;
@DataMember(Order=4)
public String FormMetaData = null;
@DataMember(Order=5)
public String ResultData = null;
@DataMember(Order=7)
public ResponseStatus ResponseStatus = null;
public Integer getTenantsId() { return TenantsId; }
public CustomActionsAddResponse setTenantsId(Integer value) { this.TenantsId = value; return this; }
public Long getActionsId() { return ActionsId; }
public CustomActionsAddResponse setActionsId(Long value) { this.ActionsId = value; return this; }
public String getFormMetaData() { return FormMetaData; }
public CustomActionsAddResponse setFormMetaData(String value) { this.FormMetaData = value; return this; }
public String getResultData() { return ResultData; }
public CustomActionsAddResponse setResultData(String value) { this.ResultData = value; return this; }
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public CustomActionsAddResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /custom_actions HTTP/1.1
Host: duengageapi.uat.scadsoftware.com
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"TenantsId":0,"ActionsId":0,"FormMetaData":"String","ResultData":"String"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"TenantsId":0,"ActionsId":0,"FormMetaData":"String","ResultData":"String","ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}