Create Custom Content

Creates a new reusable custom content snippet with a unique macro tag for insertion into templates.

Body Params

Body Params

string
required

The name of the custom content snippet

string
required

The content body (HTML or text)

integer
required

The ID of the custom content category

boolean
required

Whether this snippet is available to all publications

string
required

Unique macro tag for template insertion (must match pattern $custom_*)

string
enum
required

Editor type: 'code' or 'visual'. Cannot be changed after creation.

Allowed:
string

A description of the snippet

publication_ids
array of integers

Array of publication IDs (required when available_for_all_publications is false)

publication_ids
Response

Language
Credentials
Bearer
JWT
URL
Response
Choose an example:
application/json