Platform API

<back to all web services

GetTimezones

Get a list of timezones

The following routes are available for this service:
All Verbs/api/timezones
"use strict";
export class DataListItemModel {
    /** @param {{ListItemId?:string,Name?:string,ShortName?:string,PrimaryImagePath?:string,RecordStatus?:string,Order?:number,OwnerContactId?:string,ExtraValues?:Object[]}} [init] */
    constructor(init) { Object.assign(this, init) }
    /**
     * @type {string}
     * @description Guid of the list item PKID. */
    ListItemId;
    /**
     * @type {string}
     * @description Name of the list item. */
    Name;
    /**
     * @type {string}
     * @description Short Version Name of the list item. */
    ShortName;
    /**
     * @type {string}
     * @description The primary image url */
    PrimaryImagePath;
    /**
     * @type {string}
     * @description Record Status of the List Item (A=Active, I=Inactive, D=Deleted). */
    RecordStatus;
    /**
     * @type {number}
     * @description The order (if any) of this item in the list. */
    Order;
    /**
     * @type {string}
     * @description The owner of this item. */
    OwnerContactId;
    /** @type {Object[]} */
    ExtraValues;
}
export class DataListModel {
    /** @param {{ListId?:string,Name?:string,OwnerContactId?:string,DataListItems?:DataListItemModel[]}} [init] */
    constructor(init) { Object.assign(this, init) }
    /**
     * @type {string}
     * @description Guid of the List PKID. */
    ListId;
    /**
     * @type {string}
     * @description Name of the list. */
    Name;
    /**
     * @type {string}
     * @description The owner of this item. */
    OwnerContactId;
    /**
     * @type {DataListItemModel[]}
     * @description List Items in the list. */
    DataListItems;
}
export class GetTimezonesResponse {
    /** @param {{Timezones?:DataListModel,ResponseStatus?:ResponseStatus}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {DataListModel} */
    Timezones;
    /** @type {ResponseStatus} */
    ResponseStatus;
}
export class GetTimezones {
    constructor(init) { Object.assign(this, init) }
}

JavaScript GetTimezones 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.

POST /api/timezones 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

{
	Timezones: 
	{
		Name: String,
		DataListItems: 
		[
			{
				Name: String,
				ShortName: String,
				PrimaryImagePath: String,
				RecordStatus: String,
				Order: 0,
				ExtraValues: 
				[
					{
						
					}
				]
			}
		]
	},
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	}
}