Skip to main content

Timezones

Base URL https://api.leadx.in/api/key/protected. Every request needs an apikey header — see Authentication.

8 endpoints.

GET /timezone

Get all timezones.

Auth apikey

:::note Used by the web app utils/timezoneService.js :::

Query parameters

FieldDefault
page1
limit50
search""
offset
isdst
sortoffset,option
globaltrue

Responsedata is one Timezone object. (Resource deduced from the collections this handler reads, not read off an explicit return.)

POST /timezone

Create timezone.

Auth apikey · Success 201

:::note Used by the web app utils/timezoneService.js :::

Request body

FieldDefault
value
abbr
offset
isdst
option
utc
isActivetrue

Responsedata is one Timezone object. updatedBy, createdBy are populated, so they arrive as nested objects rather than ids.

Errors DuplicateTimezone_409 · ValidationError_400

GET /timezone/:id

Get timezone by id.

Auth apikey

Path parameters

Name
idRequired

Responsedata is one Timezone object. updatedBy, createdBy are populated, so they arrive as nested objects rather than ids.

Errors TimezoneNotFound_404

PUT /timezone/:id

Update timezone.

Auth apikey

Path parameters

Name
idRequired

Responsedata is one Timezone object. updatedBy, createdBy are populated, so they arrive as nested objects rather than ids.

Errors DuplicateTimezone_409 · TimezoneNotFound_404

DELETE /timezone/:id

Delete timezone.

Auth apikey

Path parameters

Name
idRequired

Responsedata is one ResponseMessage object. (Resource deduced from the collections this handler reads, not read off an explicit return.)

Errors TimezoneNotFound_404

POST /timezone/initialize

Initialize timezones.

Auth apikey · Success 201

Query parameters

FieldDefault
forcefalse

Responsedata is one Timezone object.

Errors FileNotFound_404 · InvalidDataFormat_400

Search timezones.

Auth apikey

Query parameters

FieldDefault
q""
limit20

Responsedata is one ResponseMessage object. (Resource deduced from the collections this handler reads, not read off an explicit return.)

GET /timezone/stats

Get timezone stats.

Auth apikey

Responsedata is one Timezone object.