Home
Webflow API and Documentation
Webflow Api And Documentation Webflow Add Custom Code Tosite Example
Webflow Api And Documentation Webflow Add Custom Code Tosite Example
CMS Content Management Ecommerce No-Code Publishing Web Development
Webflow Api And Documentation Webflow Add Custom Code Tosite 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.
Top-level fields
operationId method path summary requestExamples responseExamples
Example Payload
{
"operationId": "add-custom-code-tosite",
"method": "PUT",
"path": "/sites/{site_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"
}
]
}
},
{
"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": "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": []
}
}
]
}