Skip to content

Update Dynamic Content Profile

PATCH
/api/v1/workspaces/{workspace_id}/dynamic_content_profiles/{id}

Updates a DynamicContentProfile.

workspace_id
required
integer

Workspace ID

id
required
string

Conditional ID

object
name
string
Example
Mailchimp Profile
template_engine_preset
string
nullable
Example
liquid

Successful

object
id
required
string
Example
uuid TODO
name
required
string
Example
Mailchimp Profile
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
template_engine_preset

Optional. Stable key identifying the template engine preset applied to this profile’s conditional syntax.

string
nullable
Example
liquid
template_engine_preset_schema
required

Capability manifest describing the joiners, operators, and branch options allowed by this profile’s template engine preset. Null when no preset is set.

object
joiners
required

Supported joiner strings between conditions within a branch (e.g. “and”, “or”). Empty disallows compound conditions.

Array<string>
Example
[
"and",
"or"
]
operators_by_type
required

Map of value type (“string”, “number”, “boolean”) to the operators allowed for that type. Each operator declares whether it takes a value, so the UI picker knows whether to render a value input.

object
key
additional properties
Array<object>
object
key
required

Wire identifier for the operator (e.g. “equals”, “is_empty”).

string
requires_value
required

Whether this operator takes a value. When false, the UI picker hides the value input and the wire payload omits value.

boolean
Example
{
"string": [
{
"key": "equals",
"requires_value": true
},
{
"key": "is_empty",
"requires_value": false
}
],
"boolean": [
{
"key": "equals",
"requires_value": true
}
]
}

Unauthorized

object
message
required
string
Example
Record not found

Forbidden

object
message
required
string
Example
Record not found

Not Found

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."
]
}
}