CustomHtmlApi

Validates and saves a Custom HTML widget's content.

post/api/content-widgets/custom-html/save

Request

  • Base URL: https://www.bakersfieldcity.us
  • URL: https://www.bakersfieldcity.us/api/content-widgets/custom-html/save
  • Auth: none declared

Request body

WidgetIdstring guid

Widget whose CustomHtml option is being written.

Contentstring nullable

The editor's raw HTML.

ContentCollectionIdstring guid

Content collection the widget lives in.

ContentUpdatedboolean

False when the editor closed without a change, so nothing needs persisting.

Response

The persisted content and any validation message, or 400 when the HTML would break the layout.

Messagestring nullable

The message to display to the client user about the outcome of the request

Statusstring nullable

Whether the request is a 'Success' or 'Failure'

StatusCodeinteger

Status Code of the response

Changes

No recorded changes to this operation across all 1 revision of this API.