Trendsic Platform Service

<back to all web services

SetTenantPackRequest

Requires Authentication
The following routes are available for this service:
PUT,OPTIONS/v1/tenant/pack
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports CRM.AgencyPlatform.API.Internal

Namespace Global

    Namespace CRM.AgencyPlatform.API.Internal

        Public Partial Class IndustryPack
            Public Overridable Property PackId As Guid
            Public Overridable Property Code As String
            Public Overridable Property Name As String
            Public Overridable Property IsActive As Boolean
        End Class

        Public Partial Class SetTenantPackRequest
            Public Overridable Property PackId As Guid
        End Class

        Public Partial Class TerminologyAdminResponse
            Public Overridable Property ResponseStatus As ResponseStatus
            Public Overridable Property Packs As List(Of IndustryPack) = New List(Of IndustryPack)
            Public Overridable Property SelectedPackId As Guid?
            Public Overridable Property Terms As Dictionary(Of String, String) = New Dictionary(Of String, String)
            Public Overridable Property [Overrides] As List(Of TermOverride) = New List(Of TermOverride)
        End Class

        Public Partial Class TermOverride
            Public Overridable Property TermKey As String
            Public Overridable Property Label As String
            Public Overridable Property CreatedBy As String
            Public Overridable Property CreatedAt As Date?
            Public Overridable Property UpdatedAt As Date?
        End Class
    End Namespace
End Namespace

VB.NET 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
		}
	]
}