HomeDev GuideRecipesAPI Reference
Dev GuideAPI ReferenceUser GuideGitHubNuGetDev CommunityOptimizely AcademySubmit a ticketLog In
API Reference

Create display template

Create a new display template.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params

The display template that should be created.

Describes a display template that can be assigned to content.

string
length between 2 and 255

The unique identifier (key) of the resource.

string
required
length between 1 and 255

The display name of this display template.

string
length between 2 and 50

The optional node type this display template is valid for.

string | null

The optional base type this display template is valid for.

string

The optional key of the content type this display template is valid for.

boolean

If this is the default display template for the associated base type, node type or content type.

settings
object

The available settings for this display template.

Headers
Prefer
array of strings

Indicates client preference for the response content as per IETF RFC7240. Currently only supports 'return=representation' which can be used to indicate a preference to receive a representation of the resource that has been altered in the response.

Prefer
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
Credentials
OAuth2
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
application/problem+json