Skip to navigation

Create view version

View as Markdown
Add a version to a view and make it current

Path parameters

idstringRequiredformat: "uuid"

Request

This endpoint expects an object.
typeenumRequired
View type
Allowed values:
engine_versionintegerRequired>=1
HTML contract version the view was written against
inputsmap from strings to objectsRequired

Input name to data source, one or several; the view receives one data object with a key per input

htmlstringRequired0-1000000 characters

The view: HTML, CSS and script rendered in a sandboxed iframe

summarystringOptional0-500 characters
What changed, one line
authorenumOptional

Who produced the version: user (default), ollie or agent. Informational only

Allowed values:
librarieslist of stringsOptional

Libraries the host loads before the view runs; none when omitted

Response headers

Locationstring

Response

Created
view_idstringOptionalformat: "uuid"
versionintegerOptional
authorenumOptional
Allowed values:
summarystringOptional
typeenumOptional
Allowed values:
engine_versionintegerOptional
HTML contract version the view was written against
inputsmap from strings to objectsOptional
librarieslist of stringsOptional

Libraries the host loads before the view runs; omitted when it uses none

htmlstringOptional
created_atdatetimeOptional
created_bystringOptional

Errors

404
Not Found Error
422
Unprocessable Entity Error