SoftSolzSoftSolz
HomeAPI GuideAPI ReferenceWidget Tester
seo

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.

PATCHhttps://app.softsolz.uk/api/v1/services/seo/sites/{site_id}

Recent Requests

Log in to see full request history
TimeStatusUser Agent
Make a request to see history.

Path Params

site_idstringrequired

Headers

Authorizationstringrequired

Bearer token: `Bearer sk_live_...` (or `sk_test_...` for sandbox). A login token will not work here.

Idempotency-Keystring

Optional idempotency key for safe retries.

Body Params

namestring

Display name. Defaults to the domain.

timezonestring

IANA timezone for reporting. Defaults to UTC.

settings_jsonobject

brand_terms (string[]), thresholds, page_cap, query_page_cap.

refresh_frequencystring

daily, weekly or monthly.

expected_updated_atstring

The 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"
}
}