Skip to content
View as Markdown

POST Create Email Pattern (WP Format)​

POST
/email-patterns/wp-format

Create a reusable email pattern using the WordPress wp_block-style payload used by the FluentCRM editor middleware. If no title is provided, FluentCRM creates the pattern as Untitled Pattern. If both title and content are empty, the request is rejected.

Authorizations​

ApplicationPasswords

WordPress Application Passwords — use Basic auth with your WordPress username and an application password in the format: username:application_password

Type
API Key (header: Authorization)

Request Body​

application/json
JSON
{
"title": "string",
"content": "string",
"meta": {
"wp_pattern_sync_status": "string"
},
"wp_pattern_category": [
0
]
}

Responses​

Email pattern created successfully in WordPress block format.

application/json
JSON
{
"id": 0,
"date": "string",
"date_gmt": "string",
"modified": "string",
"modified_gmt": "string",
"slug": "string",
"status": "string",
"type": "string",
"link": "string",
"title": {
"raw": "string"
},
"content": {
"raw": "string",
"protected": true
},
"meta": {
},
"wp_pattern_sync_status": "string",
"wp_pattern_category": [
0
]
}

Playground​

Authorization
Body

Samples​

Powered by VitePress OpenAPI