> ## Documentation Index > Fetch the complete documentation index at: https://docs.mapp.com/llms.txt > Use this file to discover all available pages before exploring further. # Update a CMS block > Required: blockId, name. Update is a full replace, not a patch: send every field you want to keep. Fields left out are cleared. This includes content. ## OpenAPI ````json PUT /cmsBlocks/update { "openapi": "3.0.4", "info": { "title": "Engage public API", "version": "1" }, "servers": [ { "url": "https://your-engage-domain.com/api/rest" } ], "tags": [ { "name": "Address Attributes" }, { "name": "Async" }, { "name": "Audit Log" }, { "name": "Automation" }, { "name": "Blacklist" }, { "name": "CMS (legacy)" }, { "name": "CMS Blocks" }, { "name": "CMS Frameworks" }, { "name": "CMS Messages" }, { "name": "CMS Templates" }, { "name": "Contact" }, { "name": "Content" }, { "name": "Coupon" }, { "name": "Draft Message" }, { "name": "Ecommerce" }, { "name": "Group" }, { "name": "Group Attributes" }, { "name": "Landing Page" }, { "name": "Member Attributes" }, { "name": "Membership" }, { "name": "Message" }, { "name": "Meta" }, { "name": "Mobile Push" }, { "name": "Prepared Message" }, { "name": "Process" }, { "name": "Profile Attributes" }, { "name": "Related Data" }, { "name": "Segmentation" }, { "name": "System" }, { "name": "System User" }, { "name": "Usage Statistics" }, { "name": "User" }, { "name": "Whiteboard" } ], "paths": { "/cmsBlocks/update": { "put": { "tags": [ "CMS Blocks" ], "summary": "Updates an existing block identified by its numeric ID.", "description": "Required: blockId, name. Update is a full replace, not a patch: send every field you want to keep. Fields left out are cleared. This includes content.", "operationId": "cmsBlocksUpdate", "parameters": [ { "name": "blockId", "in": "query", "description": "The numeric ID of the block.", "required": true, "schema": { "type": "integer", "format": "int64" } }, { "name": "autoUpdate", "in": "query", "description": "If true, the change is also written into every placement of this block in existing templates and messages. Defaults to false.", "schema": { "type": "boolean", "default": false } } ], "requestBody": { "description": "The block.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BlockData" } } }, "required": true, "x-bodyName": "body" }, "responses": { "200": { "description": "The updated block.\n\nExample response:\n```json\n{\n \"id\": 9405,\n \"name\": \"Welcome text\",\n \"content\": \"
Welcome to our newsletter
\",\n \"tags\": \"welcome,onboarding\",\n \"type\": null,\n \"usageArea\": \"BODY\",\n \"description\": \"Greeting used in onboarding mails\",\n \"contentStatus\": \"UNLOCKED\",\n \"encoding\": \"UTF-8\",\n \"lifecycleStatus\": \"ACTIVE\",\n \"folder\": \"Onboarding\",\n \"variables\": \"{\\\"defaultBGColor\\\": {\\\"id\\\": \\\"def-bgColor\\\", \\\"name\\\": \\\"Default Background Color\\\", \\\"type\\\": \\\"text\\\", \\\"value\\\": \\\"#FFFFFF\\\", \\\"group\\\": \\\"System Defaults\\\", \\\"order\\\": 1, \\\"inline\\\": \\\"false\\\"}, \\\"imagetype\\\": {\\\"id\\\": \\\"314f6ef8-37df-470a-beea-6b630832df29\\\", \\\"name\\\": \\\"Image Link Settings\\\", \\\"type\\\": \\\"list\\\", \\\"value\\\": \\\"withlink\\\", \\\"options\\\": {\\\"Image w/ URL\\\": \\\"withlink\\\", \\\"Image w/o URL\\\": \\\"nolink\\\"}, \\\"group\\\": \\\"Variables\\\", \\\"order\\\": 2, \\\"inline\\\": \\\"false\\\"}}\",\n \"status\": \"WORKINPROGRESS\",\n \"schemaVersion\": 1,\n \"createDate\": 1792998000000,\n \"modifyDate\": 1793001600000,\n \"version\": 2,\n \"validationCode\": \"\",\n \"lastError\": null,\n \"copiedFromId\": null\n}\n```", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Block" } } } }, "400": { "description": "Error. All errors are returned as HTTP 400; errorCode in the body says what went wrong: INVALID_PARAMETER or MISSING_PARAMETER (a parameter is missing or invalid), NO_SUCH_OBJECT (no object with this ID in your account), PERMISSION_DENIED (your user lacks the CMS permission for this action), UNEXPECTED_ERROR (backend error). Example: {\"errorActor\": \"CLIENT\", \"errorCode\": \"NO_SUCH_OBJECT\", \"message\": \"...\", \"objectType\": null, \"propertyName\": null, \"propertyValue\": null}", "content": { "application/json": {} } } } } } }, "components": { "schemas": { "BlockData": { "type": "object", "properties": { "name": { "type": "string" }, "content": { "type": "string" }, "tags": { "type": "string" }, "description": { "type": "string" }, "contentStatus": { "enum": [ "LOCKED", "UNLOCKED" ], "type": "string" }, "encoding": { "type": "string" }, "lifecycleStatus": { "enum": [ "ACTIVE", "ARCHIVED" ], "type": "string" }, "folder": { "type": "string" } } }, "Block": { "type": "object", "properties": { "id": { "type": "integer", "format": "int64" }, "name": { "type": "string" }, "content": { "type": "string" }, "tags": { "type": "string" }, "type": { "type": "string" }, "usageArea": { "type": "string" }, "description": { "type": "string" }, "contentStatus": { "enum": [ "LOCKED", "UNLOCKED" ], "type": "string" }, "encoding": { "type": "string" }, "lifecycleStatus": { "enum": [ "ACTIVE", "ARCHIVED" ], "type": "string" }, "folder": { "type": "string" }, "variables": { "type": "string" }, "status": { "enum": [ "FINISHED", "WORKINPROGRESS" ], "type": "string" }, "schemaVersion": { "type": "integer", "format": "int32" }, "createDate": { "type": "integer", "format": "int64" }, "modifyDate": { "type": "integer", "format": "int64" }, "version": { "type": "integer", "format": "int32" }, "validationCode": { "type": "string" }, "lastError": { "type": "string" }, "copiedFromId": { "type": "integer", "format": "int64" } } } } } } ````