Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Partially update a site

Updates a site field by field. Only the fields present in the request are changed; the others keep their current values, so the display name can be changed without resending the domain and the other way round.

The validation rules described under Update a site apply to the fields that are sent.

patch
/sites/{id}/
Authorizations
AuthorizationstringRequired

Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.

Path parameters
idintegerRequired

The unique identifier of the site.

Body

The fields of a site to change. Only the fields present in the request are updated.

namestring · max: 50Optional

Display name of the site. Cannot be empty.

domainstring · max: 100Optional

Domain name the site is served on, given as a bare host name without a scheme or a trailing path. Must be unique across all sites and cannot contain spaces or tabs.

Responses
200

The site was updated successfully.

application/json

A site registered on the installation — a domain name together with the display name it is known by.

pkintegerRead-onlyOptional

Identifier of the site, assigned when it is registered.

namestring · max: 50Optional

Display name of the site.

domainstring · max: 100Optional

Domain name the site is served on.

patch/sites/{id}/
PATCH /api/v1/remote/1/sites/{id}/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 24

{
  "name": "Example Store"
}
{
  "pk": 1,
  "name": "Example Store",
  "domain": "www.example.com"
}

Last updated

Was this helpful?