Change a website name, timezone, settings or refresh frequency.
Send only the fields to change. Round-trip updated_at as expected_updated_at; a 409 STALE_VERSION means someone changed the site since you read it, so read it again before retrying.
PATCH
https://app.softsolz.uk/api/v1/services/seo/sites/{site_id}Recent Requests
Log in to see full request historyTimeStatusUser Agent
Make a request to see history.
Path Params
site_idstringrequiredHeaders
AuthorizationstringrequiredBearer token: `Bearer sk_live_...` (or `sk_test_...` for sandbox). A login token will not work here.
Idempotency-KeystringOptional idempotency key for safe retries.
Body Params
namestringDisplay name. Defaults to the domain.
timezonestringIANA timezone for reporting. Defaults to UTC.
settings_jsonobjectbrand_terms (string[]), thresholds, page_cap, query_page_cap.
refresh_frequencystringdaily, weekly or monthly.
expected_updated_atstringThe updated_at you last read.
Response
Response Body
idstringWebsite id. Use it as site_id in every other call.namestringDisplay name.domainstringBare domain the site is tracked under.gsc_property_urlstring | nullSearch Console property bound to this site, or null when not connected. Reports and history imports need this.gsc_connection_idstring | nullGoogle connection carrying the property.timezonestringIANA timezone used for reporting.statusstringactive, paused or archived.refresh_frequencystringdaily, weekly or monthly automatic refresh.last_refresh_atstring | nullWhen Search Console data was last refreshed.settings_jsonobjectBrand terms, thresholds and caps that tune the detectors.visibilitystringprivate, tenant or shared. A plain API key only sees tenant-wide sites; a connected app sees what its member sees.created_byinteger | nullMember who added the site.created_atstringCreation time.updated_atstringRound-trip as expected_updated_at on PATCH to avoid overwriting a newer edit.Request
import { SoftSolz } from '@softsolz/sdk';
const client = new SoftSolz({ apiKey: process.env.SOFTSOLZ_API_KEY });
const result = await client.seo.updateSite('<site_id>', {});console.log(result);Credentials
Sent as a Bearer token. Stored only in your browser.
Response · 200
{ "data": { "id": "string", "name": "string", "domain": "string", "gsc_property_url": "string", "gsc_connection_id": "string", "timezone": "string", "status": "string", "refresh_frequency": "string", "last_refresh_at": "string", "settings_json": {}, "visibility": "string", "created_by": 0, "created_at": "string", "updated_at": "string" }}