Skip to main content

kobana dunning email-layouts

List email layouts

Commands of kobana dunning email-layouts. Every global option (Global options) applies here.

CommandHTTPDescription
email-layoutsGET /v1/email-layoutsList email layouts
email-layouts createPOST /v1/email-layoutsCreate email layout

email-layouts​

List email layouts

kobana dunning email-layouts [OPTIONS] [COMMAND]

GET /v1/email-layouts

Lists the organization’s email layouts (default first) and the built-in reference layout.

Headers

NameTypeRequiredDescription
X-Workspace-IdstringnoWorkspace the call acts on (id or public_id, listed by GET /v1/workspaces). Optional while the organization has a single workspace; with two or more, omitting it is 400 WORKSPACE_REQUIRED. A workspace of another organization is 403 UNKNOWN_WORKSPACE.

Responses

HTTPDescription
200Layout list.
404Resource not found or outside your organization.
413Request body larger than 2 MB.

email-layouts create​

Create email layout

kobana dunning email-layouts create [OPTIONS]

POST /v1/email-layouts

Creates an email layout. The html_body must contain the {{content}} placeholder (otherwise, 400 MISSING_CONTENT_PLACEHOLDER). isDefault: true unsets the previous default.

Headers

NameTypeRequiredDescription
X-Workspace-IdstringnoWorkspace the call acts on (id or public_id, listed by GET /v1/workspaces). Optional while the organization has a single workspace; with two or more, omitting it is 400 WORKSPACE_REQUIRED. A workspace of another organization is 403 UNKNOWN_WORKSPACE.

Request body

NameTypeRequiredDescription
namestringyesLayout name.
html_bodystringyesFull layout HTML; must contain the {{content}} placeholder.
is_defaultbooleannoOrganization default layout (only one; setting a new default unsets the previous one).
custom_metadataobjectnoUser metadata (free-form JSON object, read-write). See custom_data for the legacy field on core resources.

More fields and nested objects: kobana schema dunning.email-layouts.create.

Responses

HTTPDescription
201Layout created.
400Invalid request (validation error).
404Resource not found or outside your organization.
413Request body larger than 2 MB.