Sites

Change a site's url, timezone or week start

Owner or admin only — a member gets 403 not_site_owner. Omitted fields are left alone. Unlike the read surface there is no tracking-active gate: a lapsed account must still be able to fix and clean up its sites. Another account's id answers 404 unknown_site, exactly as a nonexistent one.

patch/sites/{id}

Request

Request body

urlstring

Must start with http:// or https://.

timezonestring
week_startinteger

0 = Sunday … 6 = Saturday.

Response

The updated site.

site_idinteger required
namestring required

The site url as stored.

hashstring required

Same token as in SiteSummary.hash.

timezonestring required
week_startinteger required
hobbyboolean required
script_urlstring required
snippetstring required

The ready-to-paste script tag.

Changes

No recorded changes to this operation across all 1 revision of this API.