Register Script - Hosted
Register a hosted script 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
Headers
Bearer authentication of the form Bearer <token>, where token is your auth token.
Request
Sub-Resource Integrity Hash
A Semantic Version (SemVer) string, denoting the version of the script
User-facing name for the script. Must be between 1 and 50 alphanumeric characters
Response
Human readable id, derived from the user-specified display name
User-facing name for the script. Must be between 1 and 50 alphanumeric characters
Sub-Resource Integrity Hash. Only required for externally hosted scripts (passed via hostedLocation)
A Semantic Version (SemVer) string, denoting the version of the script