Add/Update Custom Code

PUT

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_idstringRequired

Unique identifier for a Site

Request

This endpoint expects an object.
scriptslist of objectsOptional

A list of scripts applied to a Site or a Page

Response

Request was successful

scriptslist of objectsOptional

A list of scripts applied to a Site or a Page

lastUpdatedstringOptional

Date when the Site’s scripts were last updated

createdOnstringOptional

Date when the Site’s scripts were created

Errors

Built with