| POST | /v1/forms/{FormUID}/template |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class FormSaveTemplateRequest
{
public UUID FormUID = null;
public String Name = null;
public UUID getFormUID() { return FormUID; }
public FormSaveTemplateRequest setFormUID(UUID value) { this.FormUID = value; return this; }
public String getName() { return Name; }
public FormSaveTemplateRequest setName(String value) { this.Name = value; return this; }
}
public static class FormSaveTemplateResponse
{
public UUID TemplateUID = null;
public ResponseStatus ResponseStatus = null;
public UUID getTemplateUID() { return TemplateUID; }
public FormSaveTemplateResponse setTemplateUID(UUID value) { this.TemplateUID = value; return this; }
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public FormSaveTemplateResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
}
}
Java FormSaveTemplateRequest DTOs
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 /v1/forms/{FormUID}/template HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"FormUID":"00000000000000000000000000000000","Name":"String"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"TemplateUID":"00000000000000000000000000000000","ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}