Update the organization

patch/v1/organization

Renames 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.

Private keyapi.v1.organization.updateNo demo

Request body

application/jsonrequired
objectrequired

The fields to change, at least one.

namestring

2 to 100 characters once trimmed.

minLength: 2maxLength: 100
reportingTimezonestring

An IANA timezone, like America/New_York.

Response

200The organization as saved.
Organizationrequired

An organization.

organizationIdstring (uuid)required

The organization's id.

namestringrequired

The name members see in the dashboard.

creatorIdstring (uuid)

The user who made the organization. Returned by updates only.

reportingTimezonestringrequired

The IANA timezone analytics days are counted in. UTC until it is set.

createdAtstring (date-time)

When it was made.

updatedAtstring (date-time)

When it last changed.

Errors

28

Every error is JSON with a single error string unless noted. Match on the status code; the message is for humans.

400
Request body must be valid JSON.

The body is not parseable JSON.

400
Request body must be a JSON object.

The body is empty, an array, or a JSON primitive.

404
Organization not found

The organization encoded in the API key no longer exists.

422
fields must be an object.

fields is missing, an array, or not an object.

422
Unknown field: <field>. Allowed fields: name, reportingTimezone.

fields names something other than name or reportingTimezone.

422
Organization name must be at least 2 characters

name is not a string, or shorter than 2 characters once trimmed.

422
Organization name can be at most 100 characters

name is longer than 100 characters once trimmed.

422
Not a recognised IANA timezone

reportingTimezone is not a timezone name the server knows.

422
No fields to update

fields 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"
  }
}'
Response · 200
{
  "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"
  }
}