Skip to main content
PATCH
/
v1
/
sites
/
{siteId}
Update Site
curl --request PATCH \
  --url https://8511e6e5e351.ngrok-free.app/v1/sites/{siteId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "Hearth Furniture Company",
  "hostUrl": "https://hearthfurniture.com"
}'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "Hearth Furniture Company",
  "hostUrl": "https://hearthfurniture.com",
  "apiKey": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

Authorizations

Authorization
string
header
required

The API key for the App (e.g. sk_eczMHVBY9fV6GYFhvs53qcnxq7yptlXL3ABKOZtn6dQ)

Path Parameters

siteId
string<uuid>
required

Body

application/json
name
string

The name of the site

Example:

"Hearth Furniture Company"

hostUrl
string<uri>

The host URL of the site. The URL should consist of only the origin.

Example:

"https://hearthfurniture.com"

Response

201 - application/json
id
string<uuid>
required
name
string
required

The name of the site

Example:

"Hearth Furniture Company"

hostUrl
null
required

The host URL of the site. The URL should consist of only the origin.

Example:

"https://hearthfurniture.com"

apiKey
string<uuid>
required