Add/Update Custom Code

PUT

Add a registered script to a Site.

In order to use the Custom Code APIs for Sites and Pages, Custom Code Scripts must first be registered to a Site via the registered_scripts endpoints, and then applied to a Site or Page using the appropriate custom_code endpoints.

Access to this endpoint requires a bearer token from a Data Client App.

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