Patch View

Updates one or more properties of 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] 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 patch

Query Params
string

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

boolean

Purge cache.

Body Params

View file to update.

string
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