Add/Update Custom Code

PUT

Apply scripts to a page.

Script Registration

To apply a script to a 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

page_idstringRequired

Unique identifier for a Page

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