Update Universal Content
PATCH {{baseUrl}}/api/template-universal-content/:id/
> 🚧 This endpoint is in beta and subject to change.
>
> A beta revision header (2024-07-15.pre) is required to use our beta APIs. Klaviyo APIs in beta are not intended for use in production. See our [versioning and deprecation policy](https://developers.klaviyo.com/en/docs/api_versioning_and_deprecation_policy) for more information.
Update universal content. The definition
field can only be updated for text blocks at this time.
Rate limits:
Burst: 10/s
Steady: 150/m
Scopes:
templates:write
Request Body
{"data"=>{"type"=>"template-universal-content", "id"=>"<string>", "attributes"=>{"name"=>"<string>", "definition"=>{"content_type"=>"block", "type"=>"text", "data"=>{"content"=>"<string>", "display_options"=>{"show_on"=>"desktop", "visible_check"=>"<string>", "content_repeat"=>{"repeat_for"=>"<string>", "item_alias"=>"<string>"}}, "styles"=>{"block_background_color"=>"<string>", "block_border_color"=>"<string>", "block_border_style"=>"dotted", "block_border_width"=>"<integer>", "block_padding_bottom"=>"<integer>", "block_padding_left"=>"<integer>", "block_padding_right"=>"<integer>", "block_padding_top"=>"<integer>", "color"=>"<string>", "extra_css_class"=>"<string>", "font_family"=>"<string>", "font_size"=>"<integer>", "font_style"=>"normal", "font_weight"=>"<string>", "inner_padding_bottom"=>"<integer>", "inner_padding_left"=>"<integer>", "inner_padding_right"=>"<integer>", "inner_padding_top"=>"<integer>", "mobile_stretch_content"=>"<boolean>", "background_color"=>"<string>", "letter_spacing"=>"<integer>", "line_height"=>"<number>", "text_align"=>"left", "text_decoration"=>"<string>", "text_table_layout"=>"inherit"}}}}}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
revision | string | (Required) API endpoint revision (format: YYYY-MM-DD[.suffix]) | |
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"data":{"type":"template-universal-content","id":"\u003cstring\u003e","attributes":{"name":"\u003cstring\u003e","definition":{"content_type":"block","type":"button","data":"\u003cstring\u003e"},"created":"\u003cdateTime\u003e","updated":"\u003cdateTime\u003e","screenshot_status":"never_generated","screenshot_url":"\u003cstring\u003e"},"links":{"self":"\u003curi\u003e"}}}