We’ve migrated our documentation to a new site, which means some URLs have changed.
Audience

/widget/creative/template/create

Create a creative template.

The user must be authenticated and have write permissions to the site group.

Request

The request object has the following fields:

Name

Type

Required

Description

siteGroupId

String

Yes

The site group identifier the creative template belongs to.

name

String

Yes

The template name.

elements

Array of Element objects

Yes

The creative template elements.

Each Element object has the following fields:

Name

Type

Required

Description

type

String

Yes

The type of element, either image, text or url.

name

String

Yes

A name for the element.

required

Boolean

Yes

Whether this element is required or optional for the template.

When type is image, the element additionally has the following fields:

Name

Type

Required

Description

width

Number

Yes

Integer width of the image.

height

Number

Yes

Integer height of the image.

Response

The response object has the following fields:

Name

Type

Description

id

String

Identifier for the template.

Last updated: