Trendsic Platform Service

<back to all web services

FormInboxViewSaveRequest

Requires Authentication
The following routes are available for this service:
POST/v1/forms/inbox-views
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class FormInboxViewSaveRequest
    {
        public UUID FormUID = null;
        public String Name = null;
        public String FiltersJson = null;
        
        public UUID getFormUID() { return FormUID; }
        public FormInboxViewSaveRequest setFormUID(UUID value) { this.FormUID = value; return this; }
        public String getName() { return Name; }
        public FormInboxViewSaveRequest setName(String value) { this.Name = value; return this; }
        public String getFiltersJson() { return FiltersJson; }
        public FormInboxViewSaveRequest setFiltersJson(String value) { this.FiltersJson = value; return this; }
    }

    public static class FormInboxViewsResponse
    {
        public ArrayList<FormInboxViewItem> Views = new ArrayList<FormInboxViewItem>();
        public FormInboxViewItem Saved = null;
        public ResponseStatus ResponseStatus = null;
        
        public ArrayList<FormInboxViewItem> getViews() { return Views; }
        public FormInboxViewsResponse setViews(ArrayList<FormInboxViewItem> value) { this.Views = value; return this; }
        public FormInboxViewItem getSaved() { return Saved; }
        public FormInboxViewsResponse setSaved(FormInboxViewItem value) { this.Saved = value; return this; }
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public FormInboxViewsResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
    }

    public static class FormInboxViewItem
    {
        public UUID ViewUID = null;
        public UUID FormUID = null;
        public String Name = null;
        public String FiltersJson = null;
        
        public UUID getViewUID() { return ViewUID; }
        public FormInboxViewItem setViewUID(UUID value) { this.ViewUID = value; return this; }
        public UUID getFormUID() { return FormUID; }
        public FormInboxViewItem setFormUID(UUID value) { this.FormUID = value; return this; }
        public String getName() { return Name; }
        public FormInboxViewItem setName(String value) { this.Name = value; return this; }
        public String getFiltersJson() { return FiltersJson; }
        public FormInboxViewItem setFiltersJson(String value) { this.FiltersJson = value; return this; }
    }

}

Java FormInboxViewSaveRequest DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

POST /v1/forms/inbox-views HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"FormUID":"00000000000000000000000000000000","Name":"String","FiltersJson":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"Views":[{"ViewUID":"00000000000000000000000000000000","FormUID":"00000000000000000000000000000000","Name":"String","FiltersJson":"String"}],"Saved":{"ViewUID":"00000000000000000000000000000000","FormUID":"00000000000000000000000000000000","Name":"String","FiltersJson":"String"},"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}