Field Squared API Services

<back to all web services

WorkspaceOptions

The following routes are available for this service:
GET/{Workspace}/WorkspaceOptions/

export class TimeZone
{
    public Name: string;
    public Id: string;
    public IanaId: string;
    public Abbreviation: string;

    public constructor(init?: Partial<TimeZone>) { (Object as any).assign(this, init); }
}

export class Country
{
    public Name: string;
    public Id: string;

    public constructor(init?: Partial<Country>) { (Object as any).assign(this, init); }
}

export class UserTypeOption
{
    public Name: string;
    public Id: string;

    public constructor(init?: Partial<UserTypeOption>) { (Object as any).assign(this, init); }
}

export class WorkspaceOptions
{
    public Workspace: string;
    public TimeZones: TimeZone[];
    public Countries: Country[];
    public UserTypes: UserTypeOption[];

    public constructor(init?: Partial<WorkspaceOptions>) { (Object as any).assign(this, init); }
}

TypeScript WorkspaceOptions 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

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /{Workspace}/WorkspaceOptions/ HTTP/1.1 
Host: dev.fieldsquared.com 
Accept: application/json