Disclaimer: This website requires Please enable JavaScript in your browser settings for the best experience.

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

Optimizely developer documentation

How can we help you?

Try our conversational search powered by Generative AI!

AI OnAI Off

Create or replace a display template

Create or replace a display template. If a display template with the provided key exist it is replaced.
Otherwise a new display template is created.

New Requests
Path Params
string
required

The key of the display template to update or create.

Body Params
string
required
length between 1 and 255

The display name of this display template.

string | null

The optional node type this display template is valid for.

string

Represent the base type of a ContentType.

string | null

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.

Responses

Language
Credentials
Select from the Examples drop-down list.
Select from the Examples drop-down list.