webflow-api 3.1.0 → 3.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.mock/definition/__package__.yml +363 -79
- package/.mock/definition/accessGroups.yml +1 -0
- package/.mock/definition/assets.yml +86 -47
- package/.mock/definition/collections/fields.yml +63 -46
- package/.mock/definition/collections/items.yml +58 -30
- package/.mock/definition/collections.yml +42 -7
- package/.mock/definition/components.yml +43 -50
- package/.mock/definition/ecommerce.yml +1 -0
- package/.mock/definition/forms.yml +114 -2
- package/.mock/definition/inventory.yml +2 -0
- package/.mock/definition/orders.yml +6 -68
- package/.mock/definition/pages/scripts.yml +10 -44
- package/.mock/definition/pages.yml +36 -41
- package/.mock/definition/products.yml +9 -0
- package/.mock/definition/scripts.yml +18 -49
- package/.mock/definition/sites/activityLogs.yml +10 -7
- package/.mock/definition/sites/plans.yml +7 -1
- package/.mock/definition/sites/redirects.yml +24 -1
- package/.mock/definition/sites/robotsTxt.yml +202 -0
- package/.mock/definition/sites/scripts.yml +22 -30
- package/.mock/definition/sites.yml +27 -30
- package/.mock/definition/token.yml +2 -0
- package/.mock/definition/users.yml +4 -0
- package/.mock/definition/webhooks.yml +7 -8
- package/.mock/fern.config.json +1 -1
- package/api/resources/accessGroups/client/Client.js +1 -1
- package/api/resources/assets/client/Client.d.ts +10 -7
- package/api/resources/assets/client/Client.js +18 -15
- package/api/resources/collections/client/Client.d.ts +21 -1
- package/api/resources/collections/client/Client.js +27 -5
- package/api/resources/collections/client/requests/CollectionsCreateRequest.d.ts +23 -1
- package/api/resources/collections/resources/fields/client/Client.d.ts +34 -4
- package/api/resources/collections/resources/fields/client/Client.js +40 -8
- package/api/resources/collections/resources/fields/client/requests/index.d.ts +0 -1
- package/api/resources/collections/resources/fields/index.d.ts +0 -1
- package/api/resources/collections/resources/fields/index.js +0 -1
- package/api/resources/collections/resources/index.d.ts +1 -2
- package/api/resources/collections/resources/index.js +2 -3
- package/api/resources/collections/resources/items/client/Client.d.ts +19 -12
- package/api/resources/collections/resources/items/client/Client.js +39 -28
- package/api/resources/collections/resources/items/client/requests/ItemsListItemsLiveRequest.d.ts +2 -2
- package/api/resources/collections/resources/items/client/requests/ItemsListItemsRequest.d.ts +2 -2
- package/api/resources/collections/resources/items/types/ItemsDeleteItemsLiveRequestItemsItem.d.ts +1 -1
- package/api/resources/components/client/Client.d.ts +5 -6
- package/api/resources/components/client/Client.js +10 -11
- package/api/resources/ecommerce/client/Client.js +1 -1
- package/api/resources/forms/client/Client.d.ts +51 -0
- package/api/resources/forms/client/Client.js +226 -5
- package/api/resources/forms/client/requests/FormsListSubmissionsBySiteRequest.d.ts +23 -0
- package/api/resources/forms/client/requests/index.d.ts +1 -0
- package/api/resources/inventory/client/Client.js +2 -2
- package/api/resources/orders/client/Client.js +6 -6
- package/api/resources/pages/client/Client.d.ts +8 -3
- package/api/resources/pages/client/Client.js +13 -8
- package/api/resources/pages/resources/scripts/client/Client.d.ts +6 -20
- package/api/resources/pages/resources/scripts/client/Client.js +9 -23
- package/api/resources/products/client/Client.js +6 -6
- package/api/resources/scripts/client/Client.d.ts +12 -20
- package/api/resources/scripts/client/Client.js +15 -23
- package/api/resources/sites/client/Client.d.ts +12 -3
- package/api/resources/sites/client/Client.js +25 -14
- package/api/resources/sites/resources/activityLogs/client/Client.d.ts +5 -1
- package/api/resources/sites/resources/activityLogs/client/Client.js +6 -2
- package/api/resources/sites/resources/index.d.ts +1 -0
- package/api/resources/sites/resources/index.js +2 -1
- package/api/resources/sites/resources/plans/client/Client.d.ts +2 -0
- package/api/resources/sites/resources/plans/client/Client.js +3 -1
- package/api/resources/sites/resources/redirects/client/Client.d.ts +10 -0
- package/api/resources/sites/resources/redirects/client/Client.js +14 -4
- package/api/resources/sites/resources/robotsTxt/client/Client.d.ts +124 -0
- package/api/resources/sites/resources/robotsTxt/client/Client.js +486 -0
- package/api/resources/sites/resources/robotsTxt/client/index.d.ts +1 -0
- package/api/resources/sites/resources/robotsTxt/client/index.js +2 -0
- package/api/resources/sites/resources/robotsTxt/index.d.ts +1 -0
- package/api/resources/{collections/resources/fields/types → sites/resources/robotsTxt}/index.js +1 -1
- package/api/resources/sites/resources/scripts/client/Client.d.ts +15 -13
- package/api/resources/sites/resources/scripts/client/Client.js +19 -17
- package/api/resources/token/client/Client.js +2 -2
- package/api/resources/users/client/Client.js +5 -5
- package/api/resources/users/client/requests/UsersInviteRequest.d.ts +1 -4
- package/api/resources/users/client/requests/UsersUpdateRequest.d.ts +1 -4
- package/api/resources/webhooks/client/Client.js +4 -4
- package/api/types/Asset.d.ts +4 -0
- package/api/types/AssetVariant.d.ts +3 -0
- package/api/types/Assets.d.ts +1 -0
- package/api/types/ComponentNode.d.ts +2 -2
- package/api/types/Conflict.d.ts +4 -0
- package/api/types/Dom.d.ts +2 -0
- package/api/types/FieldCreate.d.ts +8 -0
- package/api/types/FieldCreate.js +5 -0
- package/api/types/FieldType.d.ts +3 -1
- package/api/types/FieldType.js +2 -0
- package/api/types/ImageNode.d.ts +1 -0
- package/api/types/ImageNodeImage.d.ts +3 -0
- package/api/types/Metadata.d.ts +11 -0
- package/api/types/Metadata.js +5 -0
- package/api/types/MetadataOptionsItem.d.ts +12 -0
- package/api/types/MetadataOptionsItem.js +5 -0
- package/api/types/OAuthScope.d.ts +8 -0
- package/api/types/OAuthScope.js +2 -0
- package/api/types/OptionField.d.ts +19 -0
- package/api/types/OptionField.js +5 -0
- package/api/types/ReferenceField.d.ts +20 -0
- package/api/types/ReferenceField.js +5 -0
- package/api/types/ReferenceFieldMetadata.d.ts +10 -0
- package/api/types/ReferenceFieldMetadata.js +5 -0
- package/api/types/ReferenceFieldType.d.ts +11 -0
- package/api/types/ReferenceFieldType.js +10 -0
- package/api/types/Robots.d.ts +13 -0
- package/api/types/Robots.js +5 -0
- package/api/types/RobotsRulesItem.d.ts +11 -0
- package/api/types/RobotsRulesItem.js +5 -0
- package/api/types/SkuFieldData.d.ts +2 -0
- package/api/types/SkuFieldDataEcSkuBillingMethod.d.ts +3 -0
- package/api/types/SkuFieldDataEcSkuSubscriptionPlan.d.ts +3 -0
- package/api/{resources/collections/resources/fields/client/requests/FieldCreate.d.ts → types/StaticField.d.ts} +7 -12
- package/api/types/StaticField.js +5 -0
- package/api/{resources/collections/resources/fields/types/FieldCreateType.d.ts → types/StaticFieldType.d.ts} +2 -3
- package/{dist/api/resources/collections/resources/fields/types/FieldCreateType.js → api/types/StaticFieldType.js} +2 -3
- package/api/types/Text.d.ts +3 -0
- package/api/types/TextNode.d.ts +1 -0
- package/api/types/TextNodeText.d.ts +3 -0
- package/api/types/TriggerType.d.ts +1 -15
- package/api/types/WebhookList.d.ts +1 -1
- package/api/types/index.d.ts +12 -0
- package/api/types/index.js +12 -0
- package/dist/api/resources/accessGroups/client/Client.js +1 -1
- package/dist/api/resources/assets/client/Client.d.ts +10 -7
- package/dist/api/resources/assets/client/Client.js +18 -15
- package/dist/api/resources/collections/client/Client.d.ts +21 -1
- package/dist/api/resources/collections/client/Client.js +27 -5
- package/dist/api/resources/collections/client/requests/CollectionsCreateRequest.d.ts +23 -1
- package/dist/api/resources/collections/resources/fields/client/Client.d.ts +34 -4
- package/dist/api/resources/collections/resources/fields/client/Client.js +40 -8
- package/dist/api/resources/collections/resources/fields/client/requests/index.d.ts +0 -1
- package/dist/api/resources/collections/resources/fields/index.d.ts +0 -1
- package/dist/api/resources/collections/resources/fields/index.js +0 -1
- package/dist/api/resources/collections/resources/index.d.ts +1 -2
- package/dist/api/resources/collections/resources/index.js +2 -3
- package/dist/api/resources/collections/resources/items/client/Client.d.ts +19 -12
- package/dist/api/resources/collections/resources/items/client/Client.js +39 -28
- package/dist/api/resources/collections/resources/items/client/requests/ItemsListItemsLiveRequest.d.ts +2 -2
- package/dist/api/resources/collections/resources/items/client/requests/ItemsListItemsRequest.d.ts +2 -2
- package/dist/api/resources/collections/resources/items/types/ItemsDeleteItemsLiveRequestItemsItem.d.ts +1 -1
- package/dist/api/resources/components/client/Client.d.ts +5 -6
- package/dist/api/resources/components/client/Client.js +10 -11
- package/dist/api/resources/ecommerce/client/Client.js +1 -1
- package/dist/api/resources/forms/client/Client.d.ts +51 -0
- package/dist/api/resources/forms/client/Client.js +226 -5
- package/dist/api/resources/forms/client/requests/FormsListSubmissionsBySiteRequest.d.ts +23 -0
- package/dist/api/resources/forms/client/requests/FormsListSubmissionsBySiteRequest.js +5 -0
- package/dist/api/resources/forms/client/requests/index.d.ts +1 -0
- package/dist/api/resources/inventory/client/Client.js +2 -2
- package/dist/api/resources/orders/client/Client.js +6 -6
- package/dist/api/resources/pages/client/Client.d.ts +8 -3
- package/dist/api/resources/pages/client/Client.js +13 -8
- package/dist/api/resources/pages/resources/scripts/client/Client.d.ts +6 -20
- package/dist/api/resources/pages/resources/scripts/client/Client.js +9 -23
- package/dist/api/resources/products/client/Client.js +6 -6
- package/dist/api/resources/scripts/client/Client.d.ts +12 -20
- package/dist/api/resources/scripts/client/Client.js +15 -23
- package/dist/api/resources/sites/client/Client.d.ts +12 -3
- package/dist/api/resources/sites/client/Client.js +25 -14
- package/dist/api/resources/sites/resources/activityLogs/client/Client.d.ts +5 -1
- package/dist/api/resources/sites/resources/activityLogs/client/Client.js +6 -2
- package/dist/api/resources/sites/resources/index.d.ts +1 -0
- package/dist/api/resources/sites/resources/index.js +2 -1
- package/dist/api/resources/sites/resources/plans/client/Client.d.ts +2 -0
- package/dist/api/resources/sites/resources/plans/client/Client.js +3 -1
- package/dist/api/resources/sites/resources/redirects/client/Client.d.ts +10 -0
- package/dist/api/resources/sites/resources/redirects/client/Client.js +14 -4
- package/dist/api/resources/sites/resources/robotsTxt/client/Client.d.ts +124 -0
- package/dist/api/resources/sites/resources/robotsTxt/client/Client.js +486 -0
- package/dist/api/resources/sites/resources/robotsTxt/client/index.d.ts +1 -0
- package/dist/api/resources/sites/resources/robotsTxt/client/index.js +2 -0
- package/dist/api/resources/sites/resources/robotsTxt/index.d.ts +1 -0
- package/dist/{serialization/resources/collections/resources/fields/types → api/resources/sites/resources/robotsTxt}/index.js +1 -1
- package/dist/api/resources/sites/resources/scripts/client/Client.d.ts +15 -13
- package/dist/api/resources/sites/resources/scripts/client/Client.js +19 -17
- package/dist/api/resources/token/client/Client.js +2 -2
- package/dist/api/resources/users/client/Client.js +5 -5
- package/dist/api/resources/users/client/requests/UsersInviteRequest.d.ts +1 -4
- package/dist/api/resources/users/client/requests/UsersUpdateRequest.d.ts +1 -4
- package/dist/api/resources/webhooks/client/Client.js +4 -4
- package/dist/api/types/Asset.d.ts +4 -0
- package/dist/api/types/AssetVariant.d.ts +3 -0
- package/dist/api/types/Assets.d.ts +1 -0
- package/dist/api/types/ComponentNode.d.ts +2 -2
- package/dist/api/types/Conflict.d.ts +4 -0
- package/dist/api/types/Conflict.js +5 -0
- package/dist/api/types/Dom.d.ts +2 -0
- package/dist/api/types/FieldCreate.d.ts +8 -0
- package/dist/api/types/FieldCreate.js +5 -0
- package/dist/api/types/FieldType.d.ts +3 -1
- package/dist/api/types/FieldType.js +2 -0
- package/dist/api/types/ImageNode.d.ts +1 -0
- package/dist/api/types/ImageNodeImage.d.ts +3 -0
- package/dist/api/types/Metadata.d.ts +11 -0
- package/dist/api/types/Metadata.js +5 -0
- package/dist/api/types/MetadataOptionsItem.d.ts +12 -0
- package/dist/api/types/MetadataOptionsItem.js +5 -0
- package/dist/api/types/OAuthScope.d.ts +8 -0
- package/dist/api/types/OAuthScope.js +2 -0
- package/dist/api/types/OptionField.d.ts +19 -0
- package/dist/api/types/OptionField.js +5 -0
- package/dist/api/types/ReferenceField.d.ts +20 -0
- package/dist/api/types/ReferenceField.js +5 -0
- package/dist/api/types/ReferenceFieldMetadata.d.ts +10 -0
- package/dist/api/types/ReferenceFieldMetadata.js +5 -0
- package/dist/api/types/ReferenceFieldType.d.ts +11 -0
- package/dist/api/types/ReferenceFieldType.js +10 -0
- package/dist/api/types/Robots.d.ts +13 -0
- package/dist/api/types/Robots.js +5 -0
- package/dist/api/types/RobotsRulesItem.d.ts +11 -0
- package/dist/api/types/RobotsRulesItem.js +5 -0
- package/dist/api/types/SkuFieldData.d.ts +2 -0
- package/dist/api/types/SkuFieldDataEcSkuBillingMethod.d.ts +3 -0
- package/dist/api/types/SkuFieldDataEcSkuSubscriptionPlan.d.ts +3 -0
- package/dist/api/{resources/collections/resources/fields/client/requests/FieldCreate.d.ts → types/StaticField.d.ts} +7 -12
- package/dist/api/types/StaticField.js +5 -0
- package/dist/api/{resources/collections/resources/fields/types/FieldCreateType.d.ts → types/StaticFieldType.d.ts} +2 -3
- package/{api/resources/collections/resources/fields/types/FieldCreateType.js → dist/api/types/StaticFieldType.js} +2 -3
- package/dist/api/types/Text.d.ts +3 -0
- package/dist/api/types/TextNode.d.ts +1 -0
- package/dist/api/types/TextNodeText.d.ts +3 -0
- package/dist/api/types/TriggerType.d.ts +1 -15
- package/dist/api/types/WebhookList.d.ts +1 -1
- package/dist/api/types/index.d.ts +12 -0
- package/dist/api/types/index.js +12 -0
- package/dist/serialization/resources/collections/client/requests/CollectionsCreateRequest.d.ts +2 -0
- package/dist/serialization/resources/collections/client/requests/CollectionsCreateRequest.js +2 -0
- package/dist/serialization/resources/collections/resources/fields/client/requests/index.d.ts +0 -1
- package/dist/serialization/resources/collections/resources/fields/client/requests/index.js +1 -3
- package/dist/serialization/resources/collections/resources/fields/index.d.ts +0 -1
- package/dist/serialization/resources/collections/resources/fields/index.js +0 -1
- package/dist/serialization/resources/collections/resources/index.d.ts +1 -2
- package/dist/serialization/resources/collections/resources/index.js +2 -3
- package/dist/serialization/resources/collections/resources/items/types/ItemsDeleteItemsLiveRequestItemsItem.d.ts +1 -1
- package/dist/serialization/resources/collections/resources/items/types/ItemsDeleteItemsLiveRequestItemsItem.js +1 -1
- package/dist/serialization/types/Assets.d.ts +2 -0
- package/dist/serialization/types/Assets.js +2 -0
- package/dist/serialization/types/Conflict.d.ts +10 -0
- package/dist/serialization/types/Conflict.js +31 -0
- package/dist/serialization/types/Dom.d.ts +1 -0
- package/dist/serialization/types/Dom.js +1 -0
- package/dist/serialization/types/FieldCreate.d.ts +13 -0
- package/dist/serialization/types/FieldCreate.js +34 -0
- package/dist/serialization/types/FieldType.d.ts +1 -1
- package/dist/serialization/types/FieldType.js +2 -0
- package/dist/serialization/types/Metadata.d.ts +13 -0
- package/dist/serialization/types/Metadata.js +34 -0
- package/dist/serialization/types/MetadataOptionsItem.d.ts +13 -0
- package/dist/serialization/types/MetadataOptionsItem.js +34 -0
- package/dist/serialization/types/OptionField.d.ts +19 -0
- package/dist/serialization/types/OptionField.js +40 -0
- package/dist/serialization/types/ReferenceField.d.ts +20 -0
- package/dist/serialization/types/ReferenceField.js +41 -0
- package/dist/serialization/types/ReferenceFieldMetadata.d.ts +12 -0
- package/dist/serialization/types/ReferenceFieldMetadata.js +33 -0
- package/dist/serialization/types/ReferenceFieldType.d.ts +10 -0
- package/dist/serialization/types/ReferenceFieldType.js +31 -0
- package/dist/serialization/types/Robots.d.ts +14 -0
- package/dist/serialization/types/Robots.js +35 -0
- package/dist/serialization/types/RobotsRulesItem.d.ts +14 -0
- package/dist/serialization/types/RobotsRulesItem.js +35 -0
- package/dist/serialization/types/StaticField.d.ts +18 -0
- package/dist/serialization/{resources/collections/resources/fields/client/requests/FieldCreate.js → types/StaticField.js} +7 -5
- package/dist/serialization/types/StaticFieldType.d.ts +10 -0
- package/dist/serialization/{resources/collections/resources/fields/types/FieldCreateType.js → types/StaticFieldType.js} +3 -4
- package/dist/serialization/types/WebhookList.d.ts +2 -2
- package/dist/serialization/types/WebhookList.js +2 -2
- package/dist/serialization/types/index.d.ts +12 -0
- package/dist/serialization/types/index.js +12 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/wrapper/AssetsClient.d.ts +12 -0
- package/dist/wrapper/AssetsClient.js +16 -0
- package/dist/wrapper/AssetsUtilitiesClient.d.ts +49 -0
- package/dist/wrapper/AssetsUtilitiesClient.js +121 -0
- package/dist/wrapper/WebflowClient.d.ts +6 -0
- package/dist/wrapper/WebflowClient.js +10 -0
- package/dist/wrapper/WebhooksClient.d.ts +39 -0
- package/dist/wrapper/WebhooksClient.js +66 -0
- package/package.json +15 -12
- package/reference.md +585 -91
- package/serialization/resources/collections/client/requests/CollectionsCreateRequest.d.ts +2 -0
- package/serialization/resources/collections/client/requests/CollectionsCreateRequest.js +2 -0
- package/serialization/resources/collections/resources/fields/client/requests/index.d.ts +0 -1
- package/serialization/resources/collections/resources/fields/client/requests/index.js +1 -3
- package/serialization/resources/collections/resources/fields/index.d.ts +0 -1
- package/serialization/resources/collections/resources/fields/index.js +0 -1
- package/serialization/resources/collections/resources/index.d.ts +1 -2
- package/serialization/resources/collections/resources/index.js +2 -3
- package/serialization/resources/collections/resources/items/types/ItemsDeleteItemsLiveRequestItemsItem.d.ts +1 -1
- package/serialization/resources/collections/resources/items/types/ItemsDeleteItemsLiveRequestItemsItem.js +1 -1
- package/serialization/types/Assets.d.ts +2 -0
- package/serialization/types/Assets.js +2 -0
- package/serialization/types/Conflict.d.ts +10 -0
- package/serialization/types/Conflict.js +31 -0
- package/serialization/types/Dom.d.ts +1 -0
- package/serialization/types/Dom.js +1 -0
- package/serialization/types/FieldCreate.d.ts +13 -0
- package/serialization/types/FieldCreate.js +34 -0
- package/serialization/types/FieldType.d.ts +1 -1
- package/serialization/types/FieldType.js +2 -0
- package/serialization/types/Metadata.d.ts +13 -0
- package/serialization/types/Metadata.js +34 -0
- package/serialization/types/MetadataOptionsItem.d.ts +13 -0
- package/serialization/types/MetadataOptionsItem.js +34 -0
- package/serialization/types/OptionField.d.ts +19 -0
- package/serialization/types/OptionField.js +40 -0
- package/serialization/types/ReferenceField.d.ts +20 -0
- package/serialization/types/ReferenceField.js +41 -0
- package/serialization/types/ReferenceFieldMetadata.d.ts +12 -0
- package/serialization/types/ReferenceFieldMetadata.js +33 -0
- package/serialization/types/ReferenceFieldType.d.ts +10 -0
- package/serialization/types/ReferenceFieldType.js +31 -0
- package/serialization/types/Robots.d.ts +14 -0
- package/serialization/types/Robots.js +35 -0
- package/serialization/types/RobotsRulesItem.d.ts +14 -0
- package/serialization/types/RobotsRulesItem.js +35 -0
- package/serialization/types/StaticField.d.ts +18 -0
- package/serialization/{resources/collections/resources/fields/client/requests/FieldCreate.js → types/StaticField.js} +7 -5
- package/serialization/types/StaticFieldType.d.ts +10 -0
- package/serialization/{resources/collections/resources/fields/types/FieldCreateType.js → types/StaticFieldType.js} +3 -4
- package/serialization/types/WebhookList.d.ts +2 -2
- package/serialization/types/WebhookList.js +2 -2
- package/serialization/types/index.d.ts +12 -0
- package/serialization/types/index.js +12 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/wrapper/AssetsClient.d.ts +12 -0
- package/wrapper/AssetsClient.js +16 -0
- package/wrapper/AssetsUtilitiesClient.d.ts +49 -0
- package/wrapper/AssetsUtilitiesClient.js +121 -0
- package/wrapper/WebflowClient.d.ts +6 -0
- package/wrapper/WebflowClient.js +10 -0
- package/wrapper/WebhooksClient.d.ts +39 -0
- package/wrapper/WebhooksClient.js +66 -0
- package/api/resources/collections/resources/fields/types/index.d.ts +0 -1
- package/dist/api/resources/collections/resources/fields/types/index.d.ts +0 -1
- package/dist/api/resources/collections/resources/fields/types/index.js +0 -17
- package/dist/serialization/resources/collections/resources/fields/client/requests/FieldCreate.d.ts +0 -16
- package/dist/serialization/resources/collections/resources/fields/types/FieldCreateType.d.ts +0 -10
- package/dist/serialization/resources/collections/resources/fields/types/index.d.ts +0 -1
- package/serialization/resources/collections/resources/fields/client/requests/FieldCreate.d.ts +0 -16
- package/serialization/resources/collections/resources/fields/types/FieldCreateType.d.ts +0 -10
- package/serialization/resources/collections/resources/fields/types/index.d.ts +0 -1
- package/serialization/resources/collections/resources/fields/types/index.js +0 -17
- /package/api/resources/{collections/resources/fields/client/requests/FieldCreate.js → forms/client/requests/FormsListSubmissionsBySiteRequest.js} +0 -0
- /package/{dist/api/resources/collections/resources/fields/client/requests/FieldCreate.js → api/types/Conflict.js} +0 -0
|
@@ -41,6 +41,7 @@ service:
|
|
|
41
41
|
response:
|
|
42
42
|
docs: Request was successful
|
|
43
43
|
type: root.ProductAndSkUsList
|
|
44
|
+
status-code: 200
|
|
44
45
|
errors:
|
|
45
46
|
- root.BadRequestError
|
|
46
47
|
- root.UnauthorizedError
|
|
@@ -138,6 +139,7 @@ service:
|
|
|
138
139
|
response:
|
|
139
140
|
docs: Request was successful
|
|
140
141
|
type: root.ProductAndSkUs
|
|
142
|
+
status-code: 200
|
|
141
143
|
errors:
|
|
142
144
|
- root.BadRequestError
|
|
143
145
|
- root.UnauthorizedError
|
|
@@ -214,6 +216,7 @@ service:
|
|
|
214
216
|
response:
|
|
215
217
|
docs: Request was successful
|
|
216
218
|
type: root.ProductAndSkUs
|
|
219
|
+
status-code: 200
|
|
217
220
|
errors:
|
|
218
221
|
- root.BadRequestError
|
|
219
222
|
- root.UnauthorizedError
|
|
@@ -303,6 +306,7 @@ service:
|
|
|
303
306
|
response:
|
|
304
307
|
docs: Request was successful
|
|
305
308
|
type: root.Product
|
|
309
|
+
status-code: 200
|
|
306
310
|
errors:
|
|
307
311
|
- root.BadRequestError
|
|
308
312
|
- root.UnauthorizedError
|
|
@@ -379,6 +383,7 @@ service:
|
|
|
379
383
|
response:
|
|
380
384
|
docs: Request was successful
|
|
381
385
|
type: ProductsCreateSkuResponse
|
|
386
|
+
status-code: 200
|
|
382
387
|
errors:
|
|
383
388
|
- root.BadRequestError
|
|
384
389
|
- root.UnauthorizedError
|
|
@@ -396,6 +401,8 @@ service:
|
|
|
396
401
|
- {}
|
|
397
402
|
response:
|
|
398
403
|
body:
|
|
404
|
+
required:
|
|
405
|
+
key: value
|
|
399
406
|
skus:
|
|
400
407
|
- id: 580e63fc8c9a982ac9b8b745
|
|
401
408
|
cmsLocaleId: 653ad57de882f528b32e810e
|
|
@@ -448,6 +455,7 @@ service:
|
|
|
448
455
|
response:
|
|
449
456
|
docs: Request was successful
|
|
450
457
|
type: root.Sku
|
|
458
|
+
status-code: 200
|
|
451
459
|
errors:
|
|
452
460
|
- root.BadRequestError
|
|
453
461
|
- root.UnauthorizedError
|
|
@@ -495,6 +503,7 @@ service:
|
|
|
495
503
|
types:
|
|
496
504
|
ProductsCreateSkuResponse:
|
|
497
505
|
properties:
|
|
506
|
+
required: optional<unknown>
|
|
498
507
|
skus: optional<list<root.Sku>>
|
|
499
508
|
source:
|
|
500
509
|
openapi: ../../../openapi/referenced-specs/v2.yml
|
|
@@ -9,23 +9,13 @@ service:
|
|
|
9
9
|
method: GET
|
|
10
10
|
auth: true
|
|
11
11
|
docs: >
|
|
12
|
-
|
|
12
|
+
Get a list of scripts that have been registered to a site. A site can
|
|
13
|
+
have a maximum of 800 registered scripts.
|
|
13
14
|
|
|
14
15
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
to a Site via the `registered_scripts` endpoints, and then applied to a
|
|
19
|
-
Site or Page using the appropriate
|
|
20
|
-
|
|
21
|
-
`custom_code` endpoints.
|
|
22
|
-
|
|
23
|
-
Additionally, Scripts can be remotely hosted, or registered as inline
|
|
24
|
-
snippets.
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
<Note>Access to this endpoint requires a bearer token from a [Data
|
|
28
|
-
Client App](/data/docs/getting-started-data-clients).</Note>
|
|
16
|
+
<Note title="Script Registration">
|
|
17
|
+
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.
|
|
18
|
+
</Note>
|
|
29
19
|
|
|
30
20
|
|
|
31
21
|
Required scope | `custom_code:read`
|
|
@@ -39,6 +29,7 @@ service:
|
|
|
39
29
|
response:
|
|
40
30
|
docs: Request was successful
|
|
41
31
|
type: root.RegisteredScriptList
|
|
32
|
+
status-code: 200
|
|
42
33
|
errors:
|
|
43
34
|
- root.BadRequestError
|
|
44
35
|
- root.UnauthorizedError
|
|
@@ -55,7 +46,6 @@ service:
|
|
|
55
46
|
canCopy: false
|
|
56
47
|
displayName: Alert
|
|
57
48
|
hostedLocation: https://cdn.webflow.io/.../alert-0.0.1.js
|
|
58
|
-
integrityHash: integrityHash
|
|
59
49
|
createdOn: '2022-10-26T00:28:54.191Z'
|
|
60
50
|
lastUpdated: lastUpdated
|
|
61
51
|
version: 0.0.1
|
|
@@ -63,7 +53,6 @@ service:
|
|
|
63
53
|
canCopy: false
|
|
64
54
|
displayName: Alert
|
|
65
55
|
hostedLocation: https://cdn.webflow.io/.../alert-0.0.2.js
|
|
66
|
-
integrityHash: integrityHash
|
|
67
56
|
createdOn: '2022-10-26T00:28:54.191Z'
|
|
68
57
|
lastUpdated: lastUpdated
|
|
69
58
|
version: 0.0.2
|
|
@@ -80,25 +69,12 @@ service:
|
|
|
80
69
|
path: /sites/{site_id}/registered_scripts/hosted
|
|
81
70
|
method: POST
|
|
82
71
|
auth: true
|
|
83
|
-
docs:
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
In order to use the Custom Code APIs for Sites and Pages, Custom Code
|
|
88
|
-
Scripts must first be registered
|
|
89
|
-
|
|
90
|
-
to a Site via the `registered_scripts` endpoints, and then applied to a
|
|
91
|
-
Site or Page using the appropriate
|
|
92
|
-
|
|
93
|
-
`custom_code` endpoints.
|
|
94
|
-
|
|
95
|
-
Additionally, Scripts can be remotely hosted, or registered as inline
|
|
96
|
-
snippets.
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
<Note>Access to this endpoint requires a bearer token from a [Data
|
|
100
|
-
Client App](/data/docs/getting-started-data-clients).</Note>
|
|
72
|
+
docs: |
|
|
73
|
+
Register a hosted script to a site.
|
|
101
74
|
|
|
75
|
+
<Note title="Script Registration">
|
|
76
|
+
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.
|
|
77
|
+
</Note>
|
|
102
78
|
|
|
103
79
|
Required scope | `custom_code:write`
|
|
104
80
|
source:
|
|
@@ -138,6 +114,7 @@ service:
|
|
|
138
114
|
response:
|
|
139
115
|
docs: Request was successful
|
|
140
116
|
type: root.CustomCodeHostedResponse
|
|
117
|
+
status-code: 201
|
|
141
118
|
errors:
|
|
142
119
|
- root.BadRequestError
|
|
143
120
|
- root.UnauthorizedError
|
|
@@ -168,21 +145,13 @@ service:
|
|
|
168
145
|
method: POST
|
|
169
146
|
auth: true
|
|
170
147
|
docs: >
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
In order to use the Custom Code APIs for Sites and Pages, Custom Code
|
|
176
|
-
Scripts must first be registered
|
|
177
|
-
|
|
178
|
-
to a Site via the `registered_scripts` endpoints, and then applied to a
|
|
179
|
-
Site or Page using the appropriate
|
|
180
|
-
|
|
181
|
-
`custom_code` endpoints.
|
|
148
|
+
Register an inline script to a site. Inline scripts are limited to 2000
|
|
149
|
+
characters.
|
|
182
150
|
|
|
183
151
|
|
|
184
|
-
<Note
|
|
185
|
-
|
|
152
|
+
<Note title="Script Registration">
|
|
153
|
+
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.
|
|
154
|
+
</Note>
|
|
186
155
|
|
|
187
156
|
|
|
188
157
|
Required scope | `custom_code:write`
|
|
@@ -225,6 +194,7 @@ service:
|
|
|
225
194
|
response:
|
|
226
195
|
docs: Created
|
|
227
196
|
type: root.CustomCodeInlineResponse
|
|
197
|
+
status-code: 201
|
|
228
198
|
errors:
|
|
229
199
|
- root.BadRequestError
|
|
230
200
|
- root.UnauthorizedError
|
|
@@ -245,7 +215,6 @@ service:
|
|
|
245
215
|
displayName: Alert
|
|
246
216
|
hostedLocation: >-
|
|
247
217
|
https://uploads-ssl.webflow.com/6258612d1ee792848f805dcf%2F64b6c769ff52ba6c3d904a91%2F660d6e15b3d1696f2d2b1447%2Falert-0.0.1.js
|
|
248
|
-
integrityHash: integrityHash
|
|
249
218
|
createdOn: '2022-10-26T00:28:54.191Z'
|
|
250
219
|
lastUpdated: lastUpdated
|
|
251
220
|
version: 0.0.1
|
|
@@ -8,9 +8,15 @@ service:
|
|
|
8
8
|
path: /sites/{site_id}/activity_logs
|
|
9
9
|
method: GET
|
|
10
10
|
auth: true
|
|
11
|
-
docs:
|
|
12
|
-
Retrieve Activity Logs for a specific Site.
|
|
13
|
-
|
|
11
|
+
docs: >
|
|
12
|
+
Retrieve Activity Logs for a specific Site.
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
<Warning title="Enterprise Only">This endpoint requires an Enterprise
|
|
16
|
+
workspace.</Warning>
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
Required scope: `site_activity:read`
|
|
14
20
|
source:
|
|
15
21
|
openapi: ../../../openapi/referenced-specs/v2.yml
|
|
16
22
|
path-parameters:
|
|
@@ -32,6 +38,7 @@ service:
|
|
|
32
38
|
response:
|
|
33
39
|
docs: A list of site activity logs
|
|
34
40
|
type: root.SiteActivityLogResponse
|
|
41
|
+
status-code: 200
|
|
35
42
|
errors:
|
|
36
43
|
- root.ForbiddenError
|
|
37
44
|
- root.NotFoundError
|
|
@@ -53,10 +60,6 @@ service:
|
|
|
53
60
|
displayName: John Doe
|
|
54
61
|
resourceId: 654c16c7b229e56bcf26870c
|
|
55
62
|
resourceName: foo-bar
|
|
56
|
-
newValue: newValue
|
|
57
|
-
previousValue: previousValue
|
|
58
|
-
payload:
|
|
59
|
-
key: value
|
|
60
63
|
pagination:
|
|
61
64
|
limit: 25
|
|
62
65
|
offset: 0
|
|
@@ -8,9 +8,14 @@ service:
|
|
|
8
8
|
path: /sites/{site_id}/plan
|
|
9
9
|
method: GET
|
|
10
10
|
auth: true
|
|
11
|
-
docs:
|
|
11
|
+
docs: >
|
|
12
12
|
Get site plan details for the specified Site.
|
|
13
13
|
|
|
14
|
+
|
|
15
|
+
<Warning title="Enterprise Only">This endpoint requires an Enterprise
|
|
16
|
+
workspace.</Warning>
|
|
17
|
+
|
|
18
|
+
|
|
14
19
|
Required scope | `sites:read`
|
|
15
20
|
source:
|
|
16
21
|
openapi: ../../../openapi/referenced-specs/v2.yml
|
|
@@ -22,6 +27,7 @@ service:
|
|
|
22
27
|
response:
|
|
23
28
|
docs: Request was successful
|
|
24
29
|
type: root.SitePlan
|
|
30
|
+
status-code: 200
|
|
25
31
|
errors:
|
|
26
32
|
- root.BadRequestError
|
|
27
33
|
- root.UnauthorizedError
|
|
@@ -16,6 +16,9 @@ service:
|
|
|
16
16
|
control how traffic is rerouted on your site.
|
|
17
17
|
|
|
18
18
|
|
|
19
|
+
<Warning title="Enterprise Only">This endpoint requires an Enterprise
|
|
20
|
+
workspace.</Warning>
|
|
21
|
+
|
|
19
22
|
|
|
20
23
|
Required scope: `sites:read`
|
|
21
24
|
source:
|
|
@@ -28,6 +31,7 @@ service:
|
|
|
28
31
|
response:
|
|
29
32
|
docs: Request was successful
|
|
30
33
|
type: root.Redirects
|
|
34
|
+
status-code: 200
|
|
31
35
|
errors:
|
|
32
36
|
- root.BadRequestError
|
|
33
37
|
- root.UnauthorizedError
|
|
@@ -64,6 +68,10 @@ service:
|
|
|
64
68
|
restructuring URLs, or handling outdated links.
|
|
65
69
|
|
|
66
70
|
|
|
71
|
+
<Warning title="Enterprise Only">This endpoint requires an Enterprise
|
|
72
|
+
workspace.</Warning>
|
|
73
|
+
|
|
74
|
+
|
|
67
75
|
Required scope: `sites:write`
|
|
68
76
|
source:
|
|
69
77
|
openapi: ../../../openapi/referenced-specs/v2.yml
|
|
@@ -78,6 +86,7 @@ service:
|
|
|
78
86
|
response:
|
|
79
87
|
docs: Request was successful
|
|
80
88
|
type: root.Redirect
|
|
89
|
+
status-code: 200
|
|
81
90
|
errors:
|
|
82
91
|
- root.BadRequestError
|
|
83
92
|
- root.UnauthorizedError
|
|
@@ -103,10 +112,16 @@ service:
|
|
|
103
112
|
docs: >
|
|
104
113
|
Remove a URL redirection rule from a site.
|
|
105
114
|
|
|
115
|
+
|
|
106
116
|
This is useful for cleaning up outdated or unnecessary redirects,
|
|
107
117
|
ensuring that your site's routing behavior remains efficient and
|
|
108
118
|
up-to-date.
|
|
109
119
|
|
|
120
|
+
|
|
121
|
+
<Warning title="Enterprise Only">This endpoint requires an Enterprise
|
|
122
|
+
workspace.</Warning>
|
|
123
|
+
|
|
124
|
+
|
|
110
125
|
Required scope: `sites:write`
|
|
111
126
|
source:
|
|
112
127
|
openapi: ../../../openapi/referenced-specs/v2.yml
|
|
@@ -121,6 +136,7 @@ service:
|
|
|
121
136
|
response:
|
|
122
137
|
docs: Request was successful
|
|
123
138
|
type: root.Redirects
|
|
139
|
+
status-code: 200
|
|
124
140
|
errors:
|
|
125
141
|
- root.BadRequestError
|
|
126
142
|
- root.UnauthorizedError
|
|
@@ -148,8 +164,14 @@ service:
|
|
|
148
164
|
path: /sites/{site_id}/redirects/{redirect_id}
|
|
149
165
|
method: PATCH
|
|
150
166
|
auth: true
|
|
151
|
-
docs:
|
|
167
|
+
docs: >
|
|
152
168
|
Update a URL redirection rule from a site.
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
<Warning title="Enterprise Only">This endpoint requires an Enterprise
|
|
172
|
+
workspace.</Warning>
|
|
173
|
+
|
|
174
|
+
|
|
153
175
|
Required scope: `sites:write`
|
|
154
176
|
source:
|
|
155
177
|
openapi: ../../../openapi/referenced-specs/v2.yml
|
|
@@ -167,6 +189,7 @@ service:
|
|
|
167
189
|
response:
|
|
168
190
|
docs: Request was successful
|
|
169
191
|
type: root.Redirect
|
|
192
|
+
status-code: 200
|
|
170
193
|
errors:
|
|
171
194
|
- root.BadRequestError
|
|
172
195
|
- root.UnauthorizedError
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
imports:
|
|
2
|
+
root: ../__package__.yml
|
|
3
|
+
service:
|
|
4
|
+
auth: false
|
|
5
|
+
base-path: ''
|
|
6
|
+
endpoints:
|
|
7
|
+
get:
|
|
8
|
+
path: /sites/{site_id}/robots_txt
|
|
9
|
+
method: GET
|
|
10
|
+
auth: true
|
|
11
|
+
docs: |
|
|
12
|
+
Retrieve the robots.txt configuration for various user agents.
|
|
13
|
+
|
|
14
|
+
Required scope: `site_config:read`
|
|
15
|
+
source:
|
|
16
|
+
openapi: ../../../openapi/referenced-specs/v2.yml
|
|
17
|
+
path-parameters:
|
|
18
|
+
site_id:
|
|
19
|
+
type: string
|
|
20
|
+
docs: Unique identifier for a Site
|
|
21
|
+
display-name: Get robots.txt
|
|
22
|
+
response:
|
|
23
|
+
docs: Request was successful
|
|
24
|
+
type: root.Robots
|
|
25
|
+
status-code: 200
|
|
26
|
+
errors:
|
|
27
|
+
- root.BadRequestError
|
|
28
|
+
- root.UnauthorizedError
|
|
29
|
+
- root.NotFoundError
|
|
30
|
+
- root.TooManyRequestsError
|
|
31
|
+
- root.InternalServerError
|
|
32
|
+
examples:
|
|
33
|
+
- path-parameters:
|
|
34
|
+
site_id: 580e63e98c9a982ac9b8b741
|
|
35
|
+
response:
|
|
36
|
+
body:
|
|
37
|
+
rules:
|
|
38
|
+
- userAgent: googlebot
|
|
39
|
+
allows:
|
|
40
|
+
- /public
|
|
41
|
+
disallows:
|
|
42
|
+
- /vogon-poetry
|
|
43
|
+
- /total-perspective-vortex
|
|
44
|
+
sitemap: https://heartofgold.ship/sitemap.xml
|
|
45
|
+
put:
|
|
46
|
+
path: /sites/{site_id}/robots_txt
|
|
47
|
+
method: PUT
|
|
48
|
+
auth: true
|
|
49
|
+
docs: |
|
|
50
|
+
Replace the `robots.txt` configuration for various user agents.
|
|
51
|
+
|
|
52
|
+
Required scope | `site_config:write`
|
|
53
|
+
source:
|
|
54
|
+
openapi: ../../../openapi/referenced-specs/v2.yml
|
|
55
|
+
path-parameters:
|
|
56
|
+
site_id:
|
|
57
|
+
type: string
|
|
58
|
+
docs: Unique identifier for a Site
|
|
59
|
+
display-name: Replace robots.txt
|
|
60
|
+
request:
|
|
61
|
+
body: root.Robots
|
|
62
|
+
content-type: application/json
|
|
63
|
+
response:
|
|
64
|
+
docs: Request was successful
|
|
65
|
+
type: root.Robots
|
|
66
|
+
status-code: 200
|
|
67
|
+
errors:
|
|
68
|
+
- root.BadRequestError
|
|
69
|
+
- root.UnauthorizedError
|
|
70
|
+
- root.NotFoundError
|
|
71
|
+
- root.TooManyRequestsError
|
|
72
|
+
- root.InternalServerError
|
|
73
|
+
examples:
|
|
74
|
+
- path-parameters:
|
|
75
|
+
site_id: 580e63e98c9a982ac9b8b741
|
|
76
|
+
request:
|
|
77
|
+
rules:
|
|
78
|
+
- userAgent: googlebot
|
|
79
|
+
allows:
|
|
80
|
+
- /public
|
|
81
|
+
disallows:
|
|
82
|
+
- /vogon-poetry
|
|
83
|
+
- /total-perspective-vortex
|
|
84
|
+
sitemap: https://heartofgold.ship/sitemap.xml
|
|
85
|
+
response:
|
|
86
|
+
body:
|
|
87
|
+
rules:
|
|
88
|
+
- userAgent: googlebot
|
|
89
|
+
allows:
|
|
90
|
+
- /public
|
|
91
|
+
disallows:
|
|
92
|
+
- /vogon-poetry
|
|
93
|
+
- /total-perspective-vortex
|
|
94
|
+
sitemap: https://heartofgold.ship/sitemap.xml
|
|
95
|
+
delete:
|
|
96
|
+
path: /sites/{site_id}/robots_txt
|
|
97
|
+
method: DELETE
|
|
98
|
+
auth: true
|
|
99
|
+
docs: >
|
|
100
|
+
Remove specific rules for a user-agent in your `robots.txt` file. To
|
|
101
|
+
delete all rules for a user-agent, provide an empty rule set. This will
|
|
102
|
+
remove the user-agent's entry entirely, leaving it subject to your
|
|
103
|
+
site's default crawling behavior.
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
**Note:** Deleting a user-agent with no rules will make the user-agent's
|
|
107
|
+
access unrestricted unless other directives apply.
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
Required scope: `site_config:write`
|
|
111
|
+
source:
|
|
112
|
+
openapi: ../../../openapi/referenced-specs/v2.yml
|
|
113
|
+
path-parameters:
|
|
114
|
+
site_id:
|
|
115
|
+
type: string
|
|
116
|
+
docs: Unique identifier for a Site
|
|
117
|
+
display-name: Delete robots.txt
|
|
118
|
+
request:
|
|
119
|
+
body: root.Robots
|
|
120
|
+
content-type: application/json
|
|
121
|
+
response:
|
|
122
|
+
docs: Request was successful
|
|
123
|
+
type: root.Robots
|
|
124
|
+
status-code: 200
|
|
125
|
+
errors:
|
|
126
|
+
- root.BadRequestError
|
|
127
|
+
- root.UnauthorizedError
|
|
128
|
+
- root.NotFoundError
|
|
129
|
+
- root.TooManyRequestsError
|
|
130
|
+
- root.InternalServerError
|
|
131
|
+
examples:
|
|
132
|
+
- path-parameters:
|
|
133
|
+
site_id: 580e63e98c9a982ac9b8b741
|
|
134
|
+
request:
|
|
135
|
+
rules:
|
|
136
|
+
- userAgent: '*'
|
|
137
|
+
allows:
|
|
138
|
+
- /public
|
|
139
|
+
disallows:
|
|
140
|
+
- /bubbles
|
|
141
|
+
response:
|
|
142
|
+
body:
|
|
143
|
+
rules:
|
|
144
|
+
- userAgent: googlebot
|
|
145
|
+
allows:
|
|
146
|
+
- /public
|
|
147
|
+
disallows:
|
|
148
|
+
- /vogon-poetry
|
|
149
|
+
- /total-perspective-vortex
|
|
150
|
+
sitemap: https://heartofgold.ship/sitemap.xml
|
|
151
|
+
patch:
|
|
152
|
+
path: /sites/{site_id}/robots_txt
|
|
153
|
+
method: PATCH
|
|
154
|
+
auth: true
|
|
155
|
+
docs: |
|
|
156
|
+
Update the `robots.txt` configuration for various user agents.
|
|
157
|
+
|
|
158
|
+
Required scope | `site_config:write`
|
|
159
|
+
source:
|
|
160
|
+
openapi: ../../../openapi/referenced-specs/v2.yml
|
|
161
|
+
path-parameters:
|
|
162
|
+
site_id:
|
|
163
|
+
type: string
|
|
164
|
+
docs: Unique identifier for a Site
|
|
165
|
+
display-name: Update robots.txt
|
|
166
|
+
request:
|
|
167
|
+
body: root.Robots
|
|
168
|
+
content-type: application/json
|
|
169
|
+
response:
|
|
170
|
+
docs: Request was successful
|
|
171
|
+
type: root.Robots
|
|
172
|
+
status-code: 200
|
|
173
|
+
errors:
|
|
174
|
+
- root.BadRequestError
|
|
175
|
+
- root.UnauthorizedError
|
|
176
|
+
- root.NotFoundError
|
|
177
|
+
- root.TooManyRequestsError
|
|
178
|
+
- root.InternalServerError
|
|
179
|
+
examples:
|
|
180
|
+
- path-parameters:
|
|
181
|
+
site_id: 580e63e98c9a982ac9b8b741
|
|
182
|
+
request:
|
|
183
|
+
rules:
|
|
184
|
+
- userAgent: googlebot
|
|
185
|
+
allows:
|
|
186
|
+
- /public
|
|
187
|
+
disallows:
|
|
188
|
+
- /vogon-poetry
|
|
189
|
+
- /total-perspective-vortex
|
|
190
|
+
sitemap: https://heartofgold.ship/sitemap.xml
|
|
191
|
+
response:
|
|
192
|
+
body:
|
|
193
|
+
rules:
|
|
194
|
+
- userAgent: googlebot
|
|
195
|
+
allows:
|
|
196
|
+
- /public
|
|
197
|
+
disallows:
|
|
198
|
+
- /vogon-poetry
|
|
199
|
+
- /total-perspective-vortex
|
|
200
|
+
sitemap: https://heartofgold.ship/sitemap.xml
|
|
201
|
+
source:
|
|
202
|
+
openapi: ../../../openapi/referenced-specs/v2.yml
|
|
@@ -8,13 +8,12 @@ service:
|
|
|
8
8
|
path: /sites/{site_id}/custom_code
|
|
9
9
|
method: GET
|
|
10
10
|
auth: true
|
|
11
|
-
docs:
|
|
12
|
-
Get all
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
<Note>Access to this endpoint requires a bearer token from a [Data
|
|
16
|
-
Client App](/data/docs/getting-started-data-clients).</Note>
|
|
11
|
+
docs: |
|
|
12
|
+
Get all scripts applied to a site by the App.
|
|
17
13
|
|
|
14
|
+
<Note title="Script Registration">
|
|
15
|
+
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.
|
|
16
|
+
</Note>
|
|
18
17
|
|
|
19
18
|
Required scope | `custom_code:read`
|
|
20
19
|
source:
|
|
@@ -27,6 +26,7 @@ service:
|
|
|
27
26
|
response:
|
|
28
27
|
docs: Request was successful
|
|
29
28
|
type: root.ScriptApplyList
|
|
29
|
+
status-code: 200
|
|
30
30
|
errors:
|
|
31
31
|
- root.BadRequestError
|
|
32
32
|
- root.UnauthorizedError
|
|
@@ -55,22 +55,12 @@ service:
|
|
|
55
55
|
path: /sites/{site_id}/custom_code
|
|
56
56
|
method: PUT
|
|
57
57
|
auth: true
|
|
58
|
-
docs:
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
In order to use the Custom Code APIs for Sites and Pages, Custom Code
|
|
63
|
-
Scripts must first be registered
|
|
64
|
-
|
|
65
|
-
to a Site via the `registered_scripts` endpoints, and then applied to a
|
|
66
|
-
Site or Page using the appropriate
|
|
67
|
-
|
|
68
|
-
`custom_code` endpoints.
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
<Note>Access to this endpoint requires a bearer token from a [Data
|
|
72
|
-
Client App](/data/docs/getting-started-data-clients).</Note>
|
|
58
|
+
docs: |
|
|
59
|
+
Apply registered scripts to a site.
|
|
73
60
|
|
|
61
|
+
<Note title="Script Registration">
|
|
62
|
+
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.
|
|
63
|
+
</Note>
|
|
74
64
|
|
|
75
65
|
Required scope | `custom_code:write`
|
|
76
66
|
source:
|
|
@@ -86,6 +76,7 @@ service:
|
|
|
86
76
|
response:
|
|
87
77
|
docs: Request was successful
|
|
88
78
|
type: root.ScriptApplyList
|
|
79
|
+
status-code: 200
|
|
89
80
|
errors:
|
|
90
81
|
- root.BadRequestError
|
|
91
82
|
- root.UnauthorizedError
|
|
@@ -125,11 +116,8 @@ service:
|
|
|
125
116
|
method: DELETE
|
|
126
117
|
auth: true
|
|
127
118
|
docs: >
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
<Note>Access to this endpoint requires a bearer token from a [Data
|
|
132
|
-
Client App](/data/docs/getting-started-data-clients).</Note>
|
|
119
|
+
Remove scripts from a site applied by the App. This endpoint will not
|
|
120
|
+
remove scripts from the site's registered scripts.
|
|
133
121
|
|
|
134
122
|
|
|
135
123
|
Required scope | `custom_code:write`
|
|
@@ -154,11 +142,15 @@ service:
|
|
|
154
142
|
method: GET
|
|
155
143
|
auth: true
|
|
156
144
|
docs: >
|
|
157
|
-
Get
|
|
145
|
+
Get a list of scripts that have been applied to a site and/or individual
|
|
146
|
+
pages.
|
|
158
147
|
|
|
159
148
|
|
|
160
|
-
<Note
|
|
161
|
-
|
|
149
|
+
<Note title="Script Registration">
|
|
150
|
+
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.
|
|
151
|
+
|
|
152
|
+
See the documentation on [working with Custom Code](/data/docs/custom-code) for more information.
|
|
153
|
+
</Note>
|
|
162
154
|
|
|
163
155
|
|
|
164
156
|
Required scope | `custom_code:read`
|
|
@@ -183,6 +175,7 @@ service:
|
|
|
183
175
|
response:
|
|
184
176
|
docs: Request was successful
|
|
185
177
|
type: root.ListCustomCodeBlocks
|
|
178
|
+
status-code: 200
|
|
186
179
|
errors:
|
|
187
180
|
- root.BadRequestError
|
|
188
181
|
- root.UnauthorizedError
|
|
@@ -196,7 +189,6 @@ service:
|
|
|
196
189
|
body:
|
|
197
190
|
blocks:
|
|
198
191
|
- siteId: 6258612d1ee792848f805dcf
|
|
199
|
-
pageId: pageId
|
|
200
192
|
type: site
|
|
201
193
|
scripts:
|
|
202
194
|
- id: chartjs
|