Update View

Updates a specific view file.

Note that the fileName field is not updatable if the view's type is a templateset, pageset or block. You will receive a validation error with message:
"file names for views of type {view_type} can not be updated"

Body: raw JSON

namedescription
code[string] Required. Mixed string of html, parsley, inline css, js etc.
fileName[string] Must be unique. No spaces or special chars allowed. Note that this is not updatable if the view's type is a templateset, pageset or block.
Path Params
string
required

ZUID of the view file to update

Query Params
string

Action to perform on the view. Options: undelete or publish

boolean

Purge cache.

Body Params

View file to update. Code field is required to update other fields.

string
required
string

FileName are not updatable if the view's Type is a templateset, pageset or block.

Responses

Language
Credentials
Header
URL
Response
Choose an example:
application/json