Trendsic Platform Service

<back to all web services

SetTenantPackRequest

Requires Authentication
The following routes are available for this service:
PUT,OPTIONS/v1/tenant/pack

export class IndustryPack
{
    public PackId: string;
    public Code: string;
    public Name: string;
    public IsActive: boolean;

    public constructor(init?: Partial<IndustryPack>) { (Object as any).assign(this, init); }
}

export class TermOverride
{
    public TermKey: string;
    public Label: string;
    public CreatedBy: string;
    public CreatedAt?: string;
    public UpdatedAt?: string;

    public constructor(init?: Partial<TermOverride>) { (Object as any).assign(this, init); }
}

export class TerminologyAdminResponse
{
    public ResponseStatus: ResponseStatus;
    public Packs: IndustryPack[] = [];
    public SelectedPackId?: string;
    public Terms: { [index:string]: string; } = {};
    public Overrides: TermOverride[] = [];

    public constructor(init?: Partial<TerminologyAdminResponse>) { (Object as any).assign(this, init); }
}

export class SetTenantPackRequest
{
    public PackId: string;

    public constructor(init?: Partial<SetTenantPackRequest>) { (Object as any).assign(this, init); }
}

TypeScript 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
		}
	]
}