Trendsic Platform Service

<back to all web services

TermOverrideRequest

Requires Authentication
The following routes are available for this service:
POST,DELETE,OPTIONS/v1/terminology/override
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class TermOverrideRequest
    {
        public String TermKey = null;
        public String Label = null;
        
        public String getTermKey() { return TermKey; }
        public TermOverrideRequest setTermKey(String value) { this.TermKey = value; return this; }
        public String getLabel() { return Label; }
        public TermOverrideRequest setLabel(String value) { this.Label = 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 TermOverrideRequest DTOs

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

HTTP + CSV

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

POST /v1/terminology/override HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"TermKey":"String","Label":"String"}
HTTP/1.1 200 OK
Content-Type: text/csv
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-01T00:00:00.0000000","UpdatedAt":"0001-01-01T00:00:00.0000000"}]}