| POST | /v1/formfill/draft/{Token}/file/{FieldKey} |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class FormFillFileRequest
{
public String Token = null;
public String FieldKey = null;
public Integer Rev = null;
public InputStream RequestStream = null;
public String getToken() { return Token; }
public FormFillFileRequest setToken(String value) { this.Token = value; return this; }
public String getFieldKey() { return FieldKey; }
public FormFillFileRequest setFieldKey(String value) { this.FieldKey = value; return this; }
public Integer getRev() { return Rev; }
public FormFillFileRequest setRev(Integer value) { this.Rev = value; return this; }
public InputStream getRequestStream() { return RequestStream; }
public FormFillFileRequest setRequestStream(InputStream value) { this.RequestStream = value; return this; }
}
public static class FormFillFileResponse
{
public String Id = null;
public String Name = null;
public String Size = null;
public String Kind = null;
public Integer Rev = null;
public ResponseStatus ResponseStatus = null;
public String getId() { return Id; }
public FormFillFileResponse setId(String value) { this.Id = value; return this; }
public String getName() { return Name; }
public FormFillFileResponse setName(String value) { this.Name = value; return this; }
public String getSize() { return Size; }
public FormFillFileResponse setSize(String value) { this.Size = value; return this; }
public String getKind() { return Kind; }
public FormFillFileResponse setKind(String value) { this.Kind = value; return this; }
public Integer getRev() { return Rev; }
public FormFillFileResponse setRev(Integer value) { this.Rev = value; return this; }
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public FormFillFileResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/formfill/draft/{Token}/file/{FieldKey} HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
Token: String,
FieldKey: String,
Rev: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
Id: String,
Name: String,
Size: String,
Kind: String,
Rev: 0,
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
}
}