Change the timezone every chart buckets by
const url = 'https://app.dycrypt.com/o/acme/api/settings';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"timezone":"Europe/Paris"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://app.dycrypt.com/o/acme/api/settings \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "timezone": "Europe/Paris" }'A signed-in ORG_ADMIN, never a token. Changing what every chart in the organisation is bucketed by is a decision somebody makes, not something a script does on the way past.
An IANA name (Europe/Paris), validated against this server’s own tzdata.
Not an offset: an offset cannot know about summer time, so it would cut
March’s bars in one place and October’s in another.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”object
Example
Europe/ParisResponses
Section titled “Responses”The saved settings.
object
The IANA zone every chart in this organisation buckets by.
Who last set it.
Example
{ "timezone": "Europe/Paris"}The request is wrong — a bad date, a missing field, a value the product does not declare.
Every failure in this API has this shape and no other.
object
Example
{ "error": "this token does not have licenses:write"}No credential, or one that no longer resolves — revoked, expired, deleted. Replace it.
Every failure in this API has this shape and no other.
object
Example
{ "error": "this token does not have licenses:write"}Authenticated, but not allowed: a missing scope, a read-only role, a plan limit reached, or a credential used under another organisation’s slug. The right credential doing something it may not do.
Every failure in this API has this shape and no other.
object
Example
{ "error": "this token does not have licenses:write"}