Trendsic Platform Service

<back to all web services

UploadRfpAttachment

Requires Authentication
Requires any of the roles:Agent, Administrator
The following routes are available for this service:
POST/v1/project/rfp/attachment
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class UploadRfpAttachment
    {
        public HttpFile File = null;
        
        public HttpFile getFile() { return File; }
        public UploadRfpAttachment setFile(HttpFile value) { this.File = value; return this; }
    }

    public static class HttpFile
    {
        public String Name = null;
        public String FileName = null;
        public Long ContentLength = null;
        public String ContentType = null;
        public InputStream InputStream = null;
        
        public String getName() { return Name; }
        public HttpFile setName(String value) { this.Name = value; return this; }
        public String getFileName() { return FileName; }
        public HttpFile setFileName(String value) { this.FileName = value; return this; }
        public Long getContentLength() { return ContentLength; }
        public HttpFile setContentLength(Long value) { this.ContentLength = value; return this; }
        public String getContentType() { return ContentType; }
        public HttpFile setContentType(String value) { this.ContentType = value; return this; }
        public InputStream getInputStream() { return InputStream; }
        public HttpFile setInputStream(InputStream value) { this.InputStream = value; return this; }
    }

    public static class UploadAttachmentResponse
    {
        public ResponseStatus ResponseStatus = null;
        public String AttachmentId = null;
        public Integer ProjectId = null;
        public String FileType = null;
        public String FileName = null;
        public String ContentType = null;
        public Long ContentLength = null;
        public Date CreatedUtc = null;
        
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public UploadAttachmentResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
        public String getAttachmentId() { return AttachmentId; }
        public UploadAttachmentResponse setAttachmentId(String value) { this.AttachmentId = value; return this; }
        public Integer getProjectId() { return ProjectId; }
        public UploadAttachmentResponse setProjectId(Integer value) { this.ProjectId = value; return this; }
        public String getFileType() { return FileType; }
        public UploadAttachmentResponse setFileType(String value) { this.FileType = value; return this; }
        public String getFileName() { return FileName; }
        public UploadAttachmentResponse setFileName(String value) { this.FileName = value; return this; }
        public String getContentType() { return ContentType; }
        public UploadAttachmentResponse setContentType(String value) { this.ContentType = value; return this; }
        public Long getContentLength() { return ContentLength; }
        public UploadAttachmentResponse setContentLength(Long value) { this.ContentLength = value; return this; }
        public Date getCreatedUtc() { return CreatedUtc; }
        public UploadAttachmentResponse setCreatedUtc(Date value) { this.CreatedUtc = value; return this; }
    }

}

Java UploadRfpAttachment DTOs

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

HTTP + OTHER

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

POST /v1/project/rfp/attachment HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"File":{"Name":"String","FileName":"String","ContentLength":0,"ContentType":"String"}}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"AttachmentId":"String","ProjectId":0,"FileType":"String","FileName":"String","ContentType":"String","ContentLength":0,"CreatedUtc":"0001-01-01T00:00:00.0000000"}