Webflow Api And Documentation Webflow Add Custom Code To Page Example is an example object payload from Webflow API and Documentation, with 6 top-level fields. It illustrates the shape of data this provider's APIs accept or return.
{
"operationId": "add-custom-code-to-page",
"method": "PUT",
"path": "/pages/{page_id}/custom_code",
"summary": "Webflow Add/Update Custom Code",
"requestExamples": [],
"responseExamples": [
{
"status": "200",
"contentType": "application/json",
"example": {
"scripts": [
{
"id": "cms_slider",
"location": "header",
"version": "1.0.0",
"attributes": {
"my-attribute": "some-value"
}
},
{
"id": "alert",
"location": "header",
"version": "0.0.1",
"attributes": {}
}
],
"lastUpdated": "2022-10-26T00:28:54.191Z",
"createdOn": "2022-10-26T00:28:54.191Z"
}
},
{
"status": "400",
"contentType": "application/json",
"example": {
"code": "bad_request",
"message": "Bad Request: Request is malformed",
"externalReference": null,
"details": []
}
},
{
"status": "401",
"contentType": "application/json",
"example": {
"code": "not_authorized",
"message": "Request not authorized",
"externalReference": null,
"details": []
}
},
{
"status": "404",
"contentType": "application/json",
"example": {
"code": "resource_not_found",
"message": "Requested resource not found: The site cannot be found",
"externalReference": null,
"details": []
}
},
{
"status": "409",
"contentType": "application/json",
"example": {
"code": "custom_code_max_registered_scripts",
"message": "The maximum number of registered scripts has been reached.",
"externalReference": null,
"details": []
}
},
{
"status": "429",
"contentType": "application/json",
"example": {
"code": "too_many_requests",
"message": "Too many requests",
"externalReference": null,
"details": []
}
},
{
"status": "500",
"contentType": "application/json",
"example": {
"code": "internal_error",
"message": "An Internal Error occurred",
"externalReference": null,
"details": []
}
}
]
}