Skip to main content
PUT
Write a site file

Authorizations

Authorization
string
header
required

A company admin credential for your company, or a droplet installation token with the website scope for reads, except on the share routes, which refuse a droplet token.

Path Parameters

id
string<uuid>
required

The site's id.

path
string
required

The theme-style path of the file, with its slash: layouts/<name>.liquid, sections/<name>.liquid, snippets/<name>.liquid, pages/<slug>.liquid (pages/index.liquid for the home page), assets/<file> (a css, js, json, txt or html file), config/settings.json, config/menus.json, config/pages.json or config/access.json. Names use lowercase letters, digits, hyphens and underscores, with no subfolders. Any other path is refused with 422.

Pattern: ^.+$

Body

application/json

The content of a file. The path is in the URL.

member_site_file
object
required

Response

The saved file, whether it was created or replaced.

One site file.

member_site_file
object
required

One file of a site.

status
integer
required

The HTTP status.

meta
object
required

Response metadata included on every response body.