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
GetTimezonesResponse Parameters:
NameParameterData TypeRequiredDescription
TimezonesformDataListModelNo
ResponseStatusformResponseStatusNo
DataListModel Parameters:
NameParameterData TypeRequiredDescription
ListIdqueryGuidYesGuid of the List PKID.
NamequeryStringNoName of the list.
OwnerContactIdqueryGuidNoThe owner of this item.
DataListItemsqueryList<DataListItemModel>NoList Items in the list.
DataListItemModel Parameters:
NameParameterData TypeRequiredDescription
ListItemIdqueryGuidYesGuid of the list item PKID.
NamequerystringNoName of the list item.
ShortNamequerystringNoShort Version Name of the list item.
PrimaryImagePathquerystringNoThe primary image url
RecordStatusquerystringNoRecord Status of the List Item (A=Active, I=Inactive, D=Deleted).
OrderqueryintNoThe order (if any) of this item in the list.
OwnerContactIdqueryGuidNoThe owner of this item.
ExtraValuesformList<Object>No

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

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/csv
Content-Type: text/csv
Content-Length: length

{}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"Timezones":{"ListId":"00000000-0000-0000-0000-000000000000","Name":"String","OwnerContactId":"00000000-0000-0000-0000-000000000000","DataListItems":[{"ListItemId":"00000000-0000-0000-0000-000000000000","Name":"String","ShortName":"String","PrimaryImagePath":"String","RecordStatus":"String","Order":0,"OwnerContactId":"00000000-0000-0000-0000-000000000000","ExtraValues":[{}]}]},"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}