Market Radar API
API referenceNewsletters

Change a block

The fields given; the others stay, show key by key. Its id and type do not change.

PATCH
/newsletters/{id}/template/blocks/{block_id}

Authorization

key
AuthorizationBearer <token>

A key created in the app under Settings, API and MCP. Read keys read; Read and write keys also add, edit and delete companies, custom sources, groups and radars, and create, rename and delete folders.

In: header

Path Parameters

id*integer
Range0 < value <= 9007199254740991
block_id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Any of the block's fields (see Block); what is not sent stays, and show changes key by key. Its id and type do not change. A text block also takes text.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PATCH "https://example.com/newsletters/1/template/blocks/string" \  -H "Content-Type: application/json" \  -d '{    "property1": null,    "property2": null  }'
{  "block": {    "id": "string",    "type": "header",    "title": "string",    "layout": "left",    "show": {      "logo": true,      "title": true,      "issue": true,      "date": true    }  },  "template_version": "string"}