Add/Update Custom Code
Apply registered scripts to a site.
Script Registration
To apply a script to a site or page, the script must first be registered to a site via the Register Script endpoints. Once registered, the script can be applied to a Site or Page using the appropriate endpoints. See the documentation on working with Custom Code for more information.
Required scope | custom_code:write
Path parameters
site_id
Unique identifier for a Site
Request
This endpoint expects an object.
scripts
A list of scripts applied to a Site or a Page
lastUpdated
Date when the Site’s scripts were last updated
createdOn
Date when the Site’s scripts were created
Response
Request was successful
scripts
A list of scripts applied to a Site or a Page
lastUpdated
Date when the Site’s scripts were last updated
createdOn
Date when the Site’s scripts were created