Trendsic Platform Service

<back to all web services

SetTenantPackRequest

Requires Authentication
The following routes are available for this service:
PUT,OPTIONS/v1/tenant/pack
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class SetTenantPackRequest
    {
        public UUID PackId = null;
        
        public UUID getPackId() { return PackId; }
        public SetTenantPackRequest setPackId(UUID value) { this.PackId = value; return this; }
    }

    public static class TerminologyAdminResponse
    {
        public ResponseStatus ResponseStatus = null;
        public ArrayList<IndustryPack> Packs = new ArrayList<IndustryPack>();
        public UUID SelectedPackId = null;
        public HashMap<String,String> Terms = new HashMap<String,String>();
        public ArrayList<TermOverride> Overrides = new ArrayList<TermOverride>();
        
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public TerminologyAdminResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
        public ArrayList<IndustryPack> getPacks() { return Packs; }
        public TerminologyAdminResponse setPacks(ArrayList<IndustryPack> value) { this.Packs = value; return this; }
        public UUID getSelectedPackId() { return SelectedPackId; }
        public TerminologyAdminResponse setSelectedPackId(UUID value) { this.SelectedPackId = value; return this; }
        public HashMap<String,String> getTerms() { return Terms; }
        public TerminologyAdminResponse setTerms(HashMap<String,String> value) { this.Terms = value; return this; }
        public ArrayList<TermOverride> getOverrides() { return Overrides; }
        public TerminologyAdminResponse setOverrides(ArrayList<TermOverride> value) { this.Overrides = value; return this; }
    }

    public static class IndustryPack
    {
        public UUID PackId = null;
        public String Code = null;
        public String Name = null;
        public Boolean IsActive = null;
        
        public UUID getPackId() { return PackId; }
        public IndustryPack setPackId(UUID value) { this.PackId = value; return this; }
        public String getCode() { return Code; }
        public IndustryPack setCode(String value) { this.Code = value; return this; }
        public String getName() { return Name; }
        public IndustryPack setName(String value) { this.Name = value; return this; }
        public Boolean getIsActive() { return IsActive; }
        public IndustryPack setIsActive(Boolean value) { this.IsActive = value; return this; }
    }

    public static class TermOverride
    {
        public String TermKey = null;
        public String Label = null;
        public String CreatedBy = null;
        public Date CreatedAt = null;
        public Date UpdatedAt = null;
        
        public String getTermKey() { return TermKey; }
        public TermOverride setTermKey(String value) { this.TermKey = value; return this; }
        public String getLabel() { return Label; }
        public TermOverride setLabel(String value) { this.Label = value; return this; }
        public String getCreatedBy() { return CreatedBy; }
        public TermOverride setCreatedBy(String value) { this.CreatedBy = value; return this; }
        public Date getCreatedAt() { return CreatedAt; }
        public TermOverride setCreatedAt(Date value) { this.CreatedAt = value; return this; }
        public Date getUpdatedAt() { return UpdatedAt; }
        public TermOverride setUpdatedAt(Date value) { this.UpdatedAt = value; return this; }
    }

}

Java SetTenantPackRequest DTOs

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

HTTP + JSV

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

PUT /v1/tenant/pack HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	PackId: 00000000000000000000000000000000
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	},
	Packs: 
	[
		{
			PackId: 00000000000000000000000000000000,
			Code: String,
			Name: String,
			IsActive: False
		}
	],
	SelectedPackId: 00000000000000000000000000000000,
	Terms: 
	{
		String: String
	},
	Overrides: 
	[
		{
			TermKey: String,
			Label: String,
			CreatedBy: String,
			CreatedAt: 0001-01-01,
			UpdatedAt: 0001-01-01
		}
	]
}