# CustomCodeBlocks ## Documentation The registered scripts applied to the sites and their pages, one row per script. Webflow answers these to an OAuth app only, so a site token reads no rows. - Catalog: `Webflow` - Schema: `CustomCode` - Primary Keys: `site_id, page_id, script_id` This is a read-only table. The Webflow API may not support changing the data or the Invantive UniversalSQL driver for Webflow does not cover it. In the latter case, please use the table NativePlatformScalarRequests to upload data to the Webflow API. ## Table Columns The columns of the table `CustomCodeBlocks` are shown below. Each column has an SQL data type. | Name | Data Type | Label | Required | Documentation | |---|:---:|---|:---:|---| | `attributes_json` | `varchar2` | | ☐ | The attributes of the script element as JSON. | | `location` | `varchar2` | | ☐ | header or footer. | | `page_id` | `varchar2` | | ☐ | The page the script is applied to; null for the whole site. | | `script_id` | `varchar2` | | ☑ | The registered script. | | `site_id` | `varchar2` | | ☑ | The site. | | `version` | `varchar2` | | ☐ | The version of the script applied. | ## Foreign Keys The values of these columns refer to a row of another table. | Columns | Referenced Table | Referenced Columns | Guarantee | |---|---|---|---| | `script_id` | [[CustomCode-RegisteredScripts\|CustomCode.RegisteredScripts]] | `id` | Declared by the connector, not enforced by the platform |