Update the organization
/v1/organizationRenames the organization or changes its reporting timezone. Send only
the fields to change, inside fields. A field that cannot be changed
here is refused, not ignored.
Changing the timezone
Analytics days are rebuilt against the new timezone's midnights for as far back as the rollups are rebuilt, so recent figures move. Older days keep the boundaries they were counted with.
Request body
application/jsonrequiredThe fields to change, at least one.
2 to 100 characters once trimmed.
An IANA timezone, like America/New_York.
Response
An organization.
The organization's id.
The name members see in the dashboard.
The user who made the organization. Returned by updates only.
The IANA timezone analytics days are counted in. UTC until it is set.
When it was made.
When it last changed.
Errors
28Every error is JSON with a single error string unless noted. Match on the status code; the message is for humans.
Request body must be valid JSON.The body is not parseable JSON.
Request body must be a JSON object.The body is empty, an array, or a JSON primitive.
Organization not foundThe organization encoded in the API key no longer exists.
fields must be an object.fields is missing, an array, or not an object.
Unknown field: <field>. Allowed fields: name, reportingTimezone.fields names something other than name or reportingTimezone.
Organization name must be at least 2 charactersname is not a string, or shorter than 2 characters once trimmed.
Organization name can be at most 100 charactersname is longer than 100 characters once trimmed.
Not a recognised IANA timezonereportingTimezone is not a timezone name the server knows.
No fields to updatefields is an empty object.
curl -X PATCH "https://stylor.ai/api/v1/organization" \
-H "Authorization: Bearer $STYLOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"fields": {
"name": "Lovlei Ranch"
}
}'{
"organization": {
"organizationId": "0a2c1f4e-5b6d-7e8f-9012-3456789abcde",
"name": "Lovlei Ranch",
"creatorId": "3f6b0d7e-1c2a-4b5d-8e9f-0a1b2c3d4e5f",
"reportingTimezone": "America/Denver",
"createdAt": "2026-09-12T16:02:11.000Z",
"updatedAt": "2026-10-04T18:20:03.001Z"
}
}