| GET | /v1/provision/options |
|---|
"use strict";
export class PackOption {
/** @param {{Code?:string,Name?:string,PackId?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
Code;
/** @type {string} */
Name;
/** @type {string} */
PackId;
}
export class RoleTemplate {
/** @param {{Name?:string,Description?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
Name;
/** @type {string} */
Description;
}
export class StarterCatalogItem {
/** @param {{Name?:string,Rate?:number}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
Name;
/** @type {number} */
Rate;
}
export class ProvisionOptions {
/** @param {{Packs?:PackOption[],TimeZones?:string[],RoleTemplates?:RoleTemplate[],StarterCatalog?:StarterCatalogItem[],ResponseStatus?:ResponseStatus}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {PackOption[]} */
Packs = [];
/** @type {string[]} */
TimeZones = [];
/** @type {RoleTemplate[]} */
RoleTemplates = [];
/** @type {StarterCatalogItem[]} */
StarterCatalog = [];
/** @type {ResponseStatus} */
ResponseStatus;
}
export class GetProvisionOptionsRequest {
constructor(init) { Object.assign(this, init) }
}
JavaScript GetProvisionOptionsRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/provision/options HTTP/1.1 Host: api.dev.dynamics.trendsic.com Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
Packs:
[
{
Code: String,
Name: String,
PackId: 00000000000000000000000000000000
}
],
TimeZones:
[
String
],
RoleTemplates:
[
{
Name: String,
Description: String
}
],
StarterCatalog:
[
{
Name: String,
Rate: 0
}
],
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
}
}