Skip to content

Create Conditionals

POST
/api/v1/workspaces/{workspace_id}/conditionals

Creates a new conditional.

workspace_id
required
integer

Workspace ID

object
label
required
string
Example
Over age 30
can_be_used_in_subject_and_preheader
boolean
branches
required
Array<object>
object
key
required
string
Example
key
label
required
string
Example
label
default_syntax
required
object
closing
required
string
branch_values

Key-value pairs where the key is the branch key and the value is the branch syntax

object
key
additional properties
string
dynamic_content_profile_values
object
key
additional properties
string

Successful

object
id
required
integer
Example
12345
label
required
string
Example
Over age 30s
default_syntax
required
object
closing
required
string
branch_values

Key-value pairs where the key is the branch key and the value is the branch syntax

object
key
additional properties
string
branches
required
Array<object>
object
key
required
string
Example
key
label
required
string
Example
label
can_be_used_in_subject_and_preheader
required
boolean
created_at
required
string format: date-time
Example
2023-08-23T10:30:00.000Z
updated_at
required
string format: date-time
Example
2023-08-23T10:30:00.000Z
organization_id
required
integer
Example
12345
dynamic_content_profile_syntaxes
required
object
key
additional properties
object
closing
required
string
branch_values

Key-value pairs where the key is the branch key and the value is the branch syntax

object
key
additional properties
string

Unauthorized

object
message
required
string
Example
Record not found

Forbidden

object
message
required
string
Example
Record not found

Unprocessable Entity

object
message
required
string
Example
Failed to save
errors
required
object
key
additional properties
Array<string>
Example
{
"errors": {
"username": [
"Username is required.",
"Username must be unique."
],
"email": [
"Invalid email format."
]
}
}