SettingsSet the reporting time zone

Set the reporting time zone

Set or clear the location's reporting time zone. Requires an agency key (ak_) and ?location_id=; viewer keys get 403 agency_required.

Pass an IANA name such as America/Los_Angeles, or null to clear. Meta reports in the ad account's time zone, so set this to that zone for a like-for-like funnel. Unknown names are refused with 400 invalid_timezone. Nothing in the browser reads this value, so there is no config rebuild.

curl -X PUT "https://mythic-analytics.gulp.workers.dev/client/v1/settings/timezone" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -d '{
  "timezone": "America/Los_Angeles"
}'
{
  "success": true,
  "data": {
    "timezone": "example_string",
    "effective": {
      "timezone": "example_string",
      "source": "location"
    },
    "stored_invalid": "example_string"
  }
}
PUT
/timezone
PUT
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token
Bearer Tokenstring
Required

Builder/client key as a bearer token. Agency key for read-write (Bearer ak_...) or viewer key for read-only (Bearer sk_...). Scoped keys (mcp_) are accepted too and need settings:read or settings:write. See Using an mcp_ key over HTTP.

Builder/client key as a bearer token. Agency key for read-write (Bearer ak_...) or viewer key for read-only (Bearer sk_...). Scoped keys (mcp_) are accepted too and need settings:read or settings:write. See Using an mcp_ key over HTTP.
Content-Typestring
Required

The media type of the request body

Options: application/json
timezonestring
Required

IANA time zone name, or null to clear.

Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token. Builder/client key as a bearer token. Agency key for read-write (Bearer ak_...) or viewer key for read-only (Bearer sk_...). Scoped keys (mcp_) are accepted too and need settings:read or settings:write. See Using an mcp_ key over HTTP.

Body

application/json
timezonestring
Required

IANA time zone name, or null to clear.

Example:
America/Los_Angeles

Responses

successboolean
dataobject