Skip to content

Change the timezone every chart buckets by

PUT
/api/settings
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.

Media typeapplication/json
object
timezone
required
string
Example
Europe/Paris

The saved settings.

Media typeapplication/json
object
timezone
required

The IANA zone every chart in this organisation buckets by.

string
updatedAt
string | null format: date-time
updatedBy

Who last set it.

string | null
Example
{
"timezone": "Europe/Paris"
}

The request is wrong — a bad date, a missing field, a value the product does not declare.

Media typeapplication/json

Every failure in this API has this shape and no other.

object
error
required
string
Example
{
"error": "this token does not have licenses:write"
}

No credential, or one that no longer resolves — revoked, expired, deleted. Replace it.

Media typeapplication/json

Every failure in this API has this shape and no other.

object
error
required
string
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.

Media typeapplication/json

Every failure in this API has this shape and no other.

object
error
required
string
Example
{
"error": "this token does not have licenses:write"
}