{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Register an inline script to a site. Inline scripts are limited to 2000 characters.\n\n<Note title=\"Script Registration\">\n  To apply a script to a site or page, the script must first be registered to a site via the [Register Script](/data/reference/custom-code/custom-code/register-hosted) 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](/data/docs/custom-code) for more information.\n</Note>\n\n<Note>Access to this endpoint requires a bearer token obtained from an [OAuth Code Grant Flow](/data/reference/oauth-app).</Note>\n\nRequired scope | `custom_code:write`\n","properties":{"path":{"type":"object","properties":{"site_id":{"type":"string","examples":["580e63e98c9a982ac9b8b741"],"description":"Unique identifier for a Site"}},"required":["site_id"],"additionalProperties":false},"body":{"description":"A registered inline (Webflow-hosted) script","required":["displayName","version","sourceCode"],"properties":{"sourceCode":{"type":"string","description":"The code to be added to the site (to be hosted by Webflow).","examples":["alert('hello world');"]},"integrityHash":{"type":"string","description":"Sub-Resource Integrity Hash. Only required for externally hosted scripts (passed via hostedLocation)"},"canCopy":{"type":"boolean","description":"Define whether the script can be copied on site duplication and transfer","default":false},"version":{"type":"string","description":"A Semantic Version (SemVer) string, denoting the version of the script"},"displayName":{"type":"string","description":"User-facing name for the script. Must be between 1 and 50 alphanumeric characters"}},"examples":[{"displayName":"Alert","sourceCode":"alert('hello world');","version":"0.0.1"}]}},"required":["path"],"additionalProperties":false},"name":"Register Script - Inline","id":"webflow.post-inline-scripts","example":{"path":{"site_id":"580e63e98c9a982ac9b8b741"}},"maxRequests":1,"summary":false}}