| All Verbs | /api/datalist/{DataListId} |
|---|
"use strict";
export class ListItemModel {
/** @param {{ListItemId?:string,Name?:string,Description?:string,ShortName?:string,IsDefault?:boolean,Order?:number,ListItemTrafficLightId?:string,PrimaryListItemImageId?:string,PrimaryListItemImageUrl?:string,PrimaryImageThumbnailUrl?:string,OwnerContactId?:string,RecordStatus?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
ListItemId;
/** @type {string} */
Name;
/** @type {string} */
Description;
/** @type {string} */
ShortName;
/** @type {boolean} */
IsDefault;
/** @type {number} */
Order;
/** @type {string} */
ListItemTrafficLightId;
/** @type {string} */
PrimaryListItemImageId;
/** @type {string} */
PrimaryListItemImageUrl;
/** @type {string} */
PrimaryImageThumbnailUrl;
/** @type {string} */
OwnerContactId;
/** @type {string} */
RecordStatus;
}
export class ListModel {
/** @param {{ListId?:string,Name?:string,Description?:string,ShortName?:string,OwnerContactId?:string,IsStandard?:boolean,RecordStatus?:string,DefaultListItemId?:string,DefaultListItemName?:string,HasImageForListItem?:boolean,HasTrafficLightForListItem?:boolean,ListItems?:ListItemModel[],PermissionEdit?:boolean,PermissionAdd?:boolean,PermissionDelete?:boolean}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
ListId;
/** @type {string} */
Name;
/** @type {string} */
Description;
/** @type {string} */
ShortName;
/** @type {string} */
OwnerContactId;
/** @type {boolean} */
IsStandard;
/** @type {string} */
RecordStatus;
/** @type {string} */
DefaultListItemId;
/** @type {string} */
DefaultListItemName;
/** @type {boolean} */
HasImageForListItem;
/** @type {boolean} */
HasTrafficLightForListItem;
/** @type {ListItemModel[]} */
ListItems;
/** @type {boolean} */
PermissionEdit;
/** @type {boolean} */
PermissionAdd;
/** @type {boolean} */
PermissionDelete;
}
export class GetDataListDetailsResponse {
/** @param {{DataList?:ListModel,ResponseStatus?:ResponseStatus}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {ListModel} */
DataList;
/** @type {ResponseStatus} */
ResponseStatus;
}
export class GetDataListDetails {
/** @param {{DataListId?:string,OwnerContactId?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/**
* @type {string}
* @description The Data List Guid. Records retrieved will belong to this data list. */
DataListId;
/**
* @type {string}
* @description Owner Contact Id - Licensee for Custom lists, Perspective Platform for Standard ones */
OwnerContactId;
}
JavaScript GetDataListDetails DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /api/datalist/{DataListId} HTTP/1.1
Host: pfapi.pstpf.com.au
Accept: application/json
Content-Type: application/json
Content-Length: length
{"DataListId":"00000000-0000-0000-0000-000000000000","OwnerContactId":"00000000-0000-0000-0000-000000000000"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"DataList":{"ListId":"00000000-0000-0000-0000-000000000000","Name":"String","Description":"String","ShortName":"String","OwnerContactId":"00000000-0000-0000-0000-000000000000","IsStandard":false,"RecordStatus":"String","DefaultListItemId":"00000000-0000-0000-0000-000000000000","DefaultListItemName":"String","HasImageForListItem":false,"HasTrafficLightForListItem":false,"ListItems":[{"ListItemId":"00000000-0000-0000-0000-000000000000","Name":"String","Description":"String","ShortName":"String","IsDefault":false,"Order":0,"ListItemTrafficLightId":"00000000-0000-0000-0000-000000000000","PrimaryListItemImageId":"00000000-0000-0000-0000-000000000000","PrimaryListItemImageUrl":"String","PrimaryImageThumbnailUrl":"String","OwnerContactId":"00000000-0000-0000-0000-000000000000","RecordStatus":"String"}],"PermissionEdit":false,"PermissionAdd":false,"PermissionDelete":false},"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}