Browse the help center

Add or edit template property

Creates a new template property or updates an existing one within the specified template.

Reference
POST https://YOUR-NETWORK-DOMAIN/rest-api/template/template-property/edit.do

Creates a new template property or updates an existing one within the specified template. The property type determines which fields are applicable: FILE properties support allowedContentTypes, STRING properties support url/multiline/maxLength validation, INTEGER properties support minValue/maxValue/step, SELECT properties support key-value pairs and an optional 'Please Select' option, and BOOLEAN/PLACEMENT_KEY have no extra configuration. The macro key must be unique within the template and must not conflict with reserved system macros or existing file keys. The template version is incremented after the property is saved. Requires edit permission on the template; a refused call saves nothing.

Form Params

templateId integer required

Unique numeric identifier of the template to add the property to or that contains the property being edited

300

type string

Type of the property to create (default FILE) — ignored when propertyId names an existing property

STRING

propertyId integer

ID of the template property to edit — omit to create a new one

40

key string

Property key used in template content (format: $$KEY$$); the platform's own macro names, such as $$CLICK_URL$$, are reserved and refused

$$HEADLINE$$

moderation boolean

Whether this property requires moderation approval

false

order integer

Display order of this property in the form

1

required boolean

Whether this property is required when creating a banner

true

title string

Property display title

Click URL

Responses

200

Operation result with success status

400

Bad request — invalid or missing parameters

401

Authentication error

403

Forbidden — insufficient permissions

404

propertyId names a property of another template

Please disable Adblock
Are you using adblock? Disable it and reload the page to proceed to the destination page.

A registration has already been submitted from this page. Please try again in 10 minutes.