Update reusable block OAuth Scope: posts:write
Update reusable block OAuth Scope: posts:write
This feature is currently in beta and the API is subject to change.
This endpoint is available to workspaces on the Pro and Enterprise plans.
Update a reusable block. Only the fields you send change.
Sending blocks, body_content or header_image_url publishes the block, so every post, template and automation email using it picks up the change. Unpublished changes made to the block in the app are discarded, so only what you send goes live. Changing only the name, description or status does not publish the block.
Set status to archived to archive the block, or active to restore it. An archived block stops appearing in templates, automation emails and unsent posts, and cannot be added to new ones. Restoring a block lets it be added again; it does not return to the places it was removed from. Blocks that need a publication (advertisement, advertisement_logo, automated_advertisement_placement, embed_link, paywall_break, poll, programmatic_ads_logo and rss) and condition sets in visibility_settings are refused, and so is reusable_block: a reusable block can’t contain another one.
Requires an API key with access to every publication in the workspace.
Authentication
Bearer authentication of the form Bearer <token>, where token is your auth token.
Path parameters
Request
The structured content of a body or footer block. Replaces the block’s content, and an empty list clears it. Cannot be combined with a non-empty body_content. Blocks that need a publication are refused; see the endpoint description. Not accepted on header blocks.
The content of a body or footer block, as a single raw HTML string. The HTML is wrapped in an htmlSnippet block internally. Note that <style> and <link> tags are removed during sanitization, so use inline styles for all visual styling. Replaces the block’s content, and an empty string clears it. Cannot be combined with non-empty blocks. Not accepted on header blocks.
Set to archived to archive the block, or active to restore it.