Update Dynamic Content Profile
const url = 'https://example.com/%7B%7Bapp_url%7D/api/v1/workspaces/1/dynamic_content_profiles/example';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"Mailchimp Profile","template_engine_preset":"liquid"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://example.com/%7B%7Bapp_url%7D/api/v1/workspaces/1/dynamic_content_profiles/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "Mailchimp Profile", "template_engine_preset": "liquid" }'Updates a DynamicContentProfile.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Workspace ID
Conditional ID
Request Body
Section titled “Request Body”object
Example
Mailchimp ProfileExample
liquidResponses
Section titled “Responses”Successful
object
Optional. Stable key identifying the template engine preset applied to this profile’s conditional syntax.
Capability manifest describing the joiners, operators, and branch options allowed by this profile’s template engine preset. Null when no preset is set.
object
Supported joiner strings between conditions within a branch (e.g. “and”, “or”). Empty disallows compound conditions.
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
object
Wire identifier for the operator (e.g. “equals”, “is_empty”).
Whether this operator takes a value. When false, the UI picker hides the value input and the wire payload omits value.
Example
{ "id": "uuid TODO", "name": "Mailchimp Profile", "created_at": "2023-08-23T10:30:00.000Z", "updated_at": "2023-08-23T10:30:00.000Z", "organization_id": 12345, "template_engine_preset": "liquid", "template_engine_preset_schema": { "joiners": [ "and", "or" ], "operators_by_type": { "string": [ { "key": "equals", "requires_value": true }, { "key": "is_empty", "requires_value": false } ], "boolean": [ { "key": "equals", "requires_value": true } ] } }}Unauthorized
object
Example
{ "message": "Record not found"}Forbidden
object
Example
{ "message": "Record not found"}Not Found
object
Example
{ "message": "Record not found"}Unprocessable Entity
object
object
Example
{ "errors": { "username": [ "Username is required.", "Username must be unique." ], "email": [ "Invalid email format." ] }}