| All Verbs | /api/suites |
|---|
"use strict";
export class ListItemFilter {
/** @param {{ListItemFilterId?:string,FilterName?:string,ListId?:string,ListItemId?:string,ListItemIsInFilter?:boolean}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
ListItemFilterId;
/** @type {string} */
FilterName;
/** @type {string} */
ListId;
/** @type {string} */
ListItemId;
/** @type {boolean} */
ListItemIsInFilter;
}
export class ListDataItem {
/** @param {{Id?:string,Name?:string,Description?:string,ShortName?:string,DefaultName?:string,IsDefault?:boolean,Order?:number,ListItemTrafficLightId?:string,PrimaryListItemImageId?:string,PrimaryListItemImageUrl?:string,PrimaryImageThumbnailUrl?:string,OwnerContactId?:string,RecordStatus?:string,Tags?:string,ListId?:string,MarkAsChecked?:boolean,RelatedObjectId?:string,CanEdit?:boolean,IsOwner?:boolean,ExtraValues?:Object[],ListItemFilters?:ListItemFilter[]}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
Id;
/** @type {string} */
Name;
/** @type {string} */
Description;
/** @type {string} */
ShortName;
/** @type {string} */
DefaultName;
/** @type {boolean} */
IsDefault;
/** @type {number} */
Order;
/** @type {string} */
ListItemTrafficLightId;
/** @type {string} */
PrimaryListItemImageId;
/** @type {string} */
PrimaryListItemImageUrl;
/** @type {string} */
PrimaryImageThumbnailUrl;
/** @type {string} */
OwnerContactId;
/** @type {string} */
RecordStatus;
/** @type {string} */
Tags;
/** @type {string} */
ListId;
/** @type {boolean} */
MarkAsChecked;
/** @type {string} */
RelatedObjectId;
/** @type {boolean} */
CanEdit;
/** @type {boolean} */
IsOwner;
/** @type {Object[]} */
ExtraValues;
/** @type {ListItemFilter[]} */
ListItemFilters;
}
export class GetSuitesResponse {
/** @param {{Suites?:ListDataItem[],ResponseStatus?:ResponseStatus}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {ListDataItem[]} */
Suites;
/** @type {ResponseStatus} */
ResponseStatus;
}
export class GetSuites {
/** @param {{LicenseeId?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/**
* @type {string}
* @description Licensee Contact Id to return suites for. This will only return the suites that the contact has licenses for. If not set, all suites are returned */
LicenseeId;
}
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.
POST /api/suites HTTP/1.1
Host: pfapi.pstpf.com.au
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
Suites:
[
{
Name: String,
Description: String,
ShortName: String,
DefaultName: String,
IsDefault: False,
Order: 0,
PrimaryListItemImageUrl: String,
PrimaryImageThumbnailUrl: String,
RecordStatus: String,
Tags: String,
MarkAsChecked: False,
CanEdit: False,
IsOwner: False,
ExtraValues:
[
{
}
],
ListItemFilters:
[
{
FilterName: String,
ListItemIsInFilter: False
}
]
}
],
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
}
}