Properties
| Name | Type | Description |
|---|---|---|
| audience_id | string | |
| sender_identity_id | string | |
| name | string | |
| subject | string | |
| preview_text | stringnull | |
| body_html | stringnull | Full HTML body. Stored as one custom_html block when blocks are not provided. |
| body_text | stringnull | Plain-text body. Becomes paragraph blocks when blocks are not provided. With blocks or body_html, sets the plain-text override. |
| send_window_hours | integer | |
| archive_visibility | string | public lists the issue on the audience's newsletter website and in its Atom feed, private removes it. Changing it without view_in_browser also sets view_in_browser to match, as before. |
| publish_target | string | Where the newsletter goes. email_and_website (default) sends it, and lists it on the audience's newsletter website and Atom feed when archive_visibility is public. email is never listed on the website |
| view_in_browser | boolean | Whether the email carries a View in browser link to the issue's own page. Anyone with the link can open that page. When omitted, it keeps the current value, unless archive_visibility changes in the sa |
| feed_entry_url | stringnull | Optional http(s) Atom entry destination. Send null to clear it. |
| styling_mode | string | styled applies Shipmail's email theme. plain sends your HTML without injected styles, width, or centering, so the reader's email client styles it. |
| track_engagement | boolean | Track opens and clicks for this newsletter. Omit to keep the current value. Returns 422 validation_error when open and click tracking is not available. Can only change while the newsletter is an edita |
| add_utm_tags | boolean | Add UTM tags to the links of this newsletter. Omit to keep the current value. Adds utm_source=shipmail, utm_medium (email or feed) and utm_campaign (a slug of the subject) to the newsletter's http and |
| blocks | array | Preferred body format. Shipmail stores blocks and renders body_html and body_text from them. Rich prose fields accept bare text or sanitized inline HTML. |
| content_markdown | string | The body as Markdown, instead of blocks or body_html. Shipmail converts headings, paragraphs, lists, quotes, code, images, links, dividers and tables to blocks and stores blocks only. A callout starts |
| subject_b | stringnull | A second subject to test against subject. Each goes to a slice of subject_test_percent of the subscribers; after subject_test_hours the one with more human clicks goes to the rest. Opens do not decide |
| subject_test_percent | integernull | |
| subject_test_hours | integernull |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/shipmail-to/json-schema/shipmail-to-update-newsletter-request-schema.json",
"title": "UpdateNewsletterRequest",
"x-generated": "2026-11-24",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/shipmail-to-openapi.json#/components/schemas/UpdateNewsletterRequest",
"type": "object",
"minProperties": 1,
"properties": {
"audience_id": {
"type": "string"
},
"sender_identity_id": {
"type": "string"
},
"name": {
"type": "string",
"maxLength": 160
},
"subject": {
"type": "string",
"maxLength": 200
},
"preview_text": {
"type": [
"string",
"null"
]
},
"body_html": {
"type": [
"string",
"null"
],
"description": "Full HTML body. Stored as one custom_html block when blocks are not provided."
},
"body_text": {
"type": [
"string",
"null"
],
"description": "Plain-text body. Becomes paragraph blocks when blocks are not provided. With blocks or body_html, sets the plain-text override."
},
"send_window_hours": {
"type": "integer",
"minimum": 1,
"maximum": 24
},
"archive_visibility": {
"type": "string",
"enum": [
"private",
"public"
],
"description": "public lists the issue on the audience's newsletter website and in its Atom feed, private removes it. Changing it without view_in_browser also sets view_in_browser to match, as before."
},
"publish_target": {
"type": "string",
"enum": [
"email_and_website",
"email",
"website"
],
"description": "Where the newsletter goes. email_and_website (default) sends it, and lists it on the audience's newsletter website and Atom feed when archive_visibility is public. email is never listed on the website, sitemap or feed. website is published on the audience's newsletter website and feed at the scheduled time without any email, uses no sends, and ends in the published status; the audience needs its website or its feed on."
},
"view_in_browser": {
"type": "boolean",
"description": "Whether the email carries a View in browser link to the issue's own page. Anyone with the link can open that page. When omitted, it keeps the current value, unless archive_visibility changes in the same request: then it is true for a public email_and_website issue and false otherwise."
},
"feed_entry_url": {
"type": [
"string",
"null"
],
"format": "uri",
"description": "Optional http(s) Atom entry destination. Send null to clear it."
},
"styling_mode": {
"type": "string",
"enum": [
"styled",
"plain"
],
"default": "styled",
"description": "styled applies Shipmail's email theme. plain sends your HTML without injected styles, width, or centering, so the reader's email client styles it."
},
"track_engagement": {
"type": "boolean",
"description": "Track opens and clicks for this newsletter. Omit to keep the current value. Returns 422 validation_error when open and click tracking is not available. Can only change while the newsletter is an editable draft or a future scheduled newsletter."
},
"add_utm_tags": {
"type": "boolean",
"description": "Add UTM tags to the links of this newsletter. Omit to keep the current value. Adds utm_source=shipmail, utm_medium (email or feed) and utm_campaign (a slug of the subject) to the newsletter's http and https links. Links that already carry a utm_ parameter, links with a merge tag in the host, and Shipmail's own unsubscribe and archive links are left alone. The web archive is never tagged. Can only change while the newsletter is an editable draft or a future scheduled newsletter."
},
"blocks": {
"type": "array",
"maxItems": 200,
"items": {
"$ref": "#/$defs/NewsletterBlock"
},
"description": "Preferred body format. Shipmail stores blocks and renders body_html and body_text from them. Rich prose fields accept bare text or sanitized inline HTML."
},
"content_markdown": {
"type": "string",
"maxLength": 100000,
"description": "The body as Markdown, instead of blocks or body_html. Shipmail converts headings, paragraphs, lists, quotes, code, images, links, dividers and tables to blocks and stores blocks only. A callout starts with a line `:::callout` (optionally followed by info, warning or success, then a title) and ends with a line `:::`. Raw HTML stays visible text. Send only one of blocks, body_html or content_markdown."
},
"subject_b": {
"type": [
"string",
"null"
],
"maxLength": 200,
"description": "A second subject to test against subject. Each goes to a slice of subject_test_percent of the subscribers; after subject_test_hours the one with more human clicks goes to the rest. Opens do not decide, because Apple Mail Privacy Protection opens every message. Requires track_engagement. Null removes the test."
},
"subject_test_percent": {
"type": [
"integer",
"null"
],
"minimum": 1,
"maximum": 25,
"default": 10
},
"subject_test_hours": {
"type": [
"integer",
"null"
],
"minimum": 1,
"maximum": 72,
"default": 4
}
},
"$defs": {
"NewsletterBlock": {
"oneOf": [
{
"type": "object",
"additionalProperties": false,
"required": [
"type",
"text"
],
"properties": {
"type": {
"type": "string",
"const": "heading"
},
"text": {
"type": "string",
"minLength": 1,
"maxLength": 10000,
"description": "Heading text."
},
"level": {
"type": "integer",
"enum": [
1,
2,
3
],
"default": 2
},
"visibility": {
"$ref": "#/$defs/NewsletterBlockVisibility"
}
}
},
{
"type": "object",
"additionalProperties": false,
"required": [
"type",
"body"
],
"properties": {
"type": {
"type": "string",
"const": "paragraph"
},
"body": {
"type": "string",
"minLength": 1,
"maxLength": 10000,
"description": "Bare text or sanitized inline HTML. Allowed tags: a, b, br, code, em, i, p, s, span, strong, and u. Use p or br for line breaks and HTML entities for literal tag-like text."
},
"visibility": {
"$ref": "#/$defs/NewsletterBlockVisibility"
}
}
},
{
"type": "object",
"additionalProperties": false,
"required": [
"type",
"items"
],
"properties": {
"type": {
"type": "string",
"const": "list"
},
"ordered": {
"type": "boolean",
"default": false
},
"items": {
"type": "array",
"minItems": 1,
"maxItems": 50,
"items": {
"type": "string",
"minLength": 1,
"maxLength": 10000,
"description": "Bare text or sanitized inline HTML. Allowed tags: a, b, br, code, em, i, p, s, span, strong, and u."
}
},
"visibility": {
"$ref": "#/$defs/NewsletterBlockVisibility"
}
}
},
{
"type": "object",
"additionalProperties": false,
"required": [
"type",
"body"
],
"properties": {
"type": {
"type": "string",
"const": "callout"
},
"title": {
"type": [
"string",
"null"
],
"maxLength": 10000,
"description": "Optional callout title."
},
"body": {
"type": "string",
"minLength": 1,
"maxLength": 10000,
"description": "Bare text or sanitized inline HTML. Allowed tags: a, b, br, code, em, i, p, s, span, strong, and u. Use p or br for line breaks."
},
"variant": {
"type": "string",
"enum": [
"accent",
"info",
"warning",
"success"
],
"default": "accent"
},
"visibility": {
"$ref": "#/$defs/NewsletterBlockVisibility"
}
}
},
{
"type": "object",
"additionalProperties": false,
"required": [
"type",
"label",
"url"
],
"properties": {
"type": {
"type": "string",
"const": "button"
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 120,
"description": "Button label."
},
"url": {
"type": "string",
"maxLength": 2048,
"description": "Absolute http, https, or mailto URL."
},
"align": {
"type": "string",
"enum": [
"left",
"center",
"right"
],
"default": "left",
"description": "Horizontal alignment of the button."
},
"visibility": {
"$ref": "#/$defs/NewsletterBlockVisibility"
}
}
},
{
"type": "object",
"additionalProperties": false,
"required": [
"type",
"url",
"alt"
],
"properties": {
"type": {
"type": "string",
"const": "image"
},
"url": {
"type": "string",
"format": "uri",
"maxLength": 2048,
"description": "Hosted HTTPS image URL."
},
"alt": {
"type": "string",
"minLength": 1,
"maxLength": 300,
"description": "Image alt text."
},
"align": {
"type": "string",
"enum": [
"left",
"center",
"right"
],
"default": "left",
"description": "Horizontal alignment of the image and its caption."
},
"link_url": {
"type": [
"string",
"null"
],
"maxLength": 2048,
"description": "Optional absolute http, https, or mailto image link."
},
"caption": {
"type": [
"string",
"null"
],
"maxLength": 10000,
"description": "Optional image caption."
},
"caption_url": {
"type": [
"string",
"null"
],
"maxLength": 2048,
"description": "Optional absolute http, https, or mailto caption link."
},
"visibility": {
"$ref": "#/$defs/NewsletterBlockVisibility"
}
}
},
{
"type": "object",
"additionalProperties": false,
"required": [
"type",
"video_url",
"thumbnail_url",
"label"
],
"properties": {
"type": {
"type": "string",
"const": "video"
},
"video_url": {
"type": "string",
"maxLength": 2048,
"description": "Absolute hosted video URL. Emails render this as a linked thumbnail."
},
"thumbnail_url": {
"type": "string",
"format": "uri",
"maxLength": 2048,
"description": "Hosted HTTPS image thumbnail URL."
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 160,
"description": "Video link label."
},
"visibility": {
"$ref": "#/$defs/NewsletterBlockVisibility"
}
}
},
{
"type": "object",
"additionalProperties": false,
"required": [
"type",
"left",
"right"
],
"properties": {
"type": {
"type": "string",
"const": "columns"
},
"ratio": {
"type": "string",
"enum": [
"50-50",
"33-67",
"67-33"
],
"default": "50-50"
},
"left": {
"type": "object",
"additionalProperties": false,
"description": "Left column content. Include at least one heading, body, image, or CTA field.",
"allOf": [
{
"anyOf": [
{
"required": [
"title"
],
"properties": {
"title": {
"type": "string",
"minLength": 1
}
}
},
{
"required": [
"body"
],
"properties": {
"body": {
"type": "string",
"minLength": 1
}
}
},
{
"required": [
"image_url"
],
"properties": {
"image_url": {
"type": "string",
"format": "uri",
"minLength": 1
}
}
},
{
"required": [
"cta_label",
"cta_url"
],
"properties": {
"cta_label": {
"type": "string",
"minLength": 1
},
"cta_url": {
"type": "string",
"minLength": 1
}
}
}
]
},
{
"if": {
"required": [
"cta_label"
],
"properties": {
"cta_label": {
"type": "string",
"minLength": 1
}
}
},
"then": {
"required": [
"cta_url"
],
"properties": {
"cta_url": {
"type": "string",
"minLength": 1
}
}
}
},
{
"if": {
"required": [
"cta_url"
],
"properties": {
"cta_url": {
"type": "string",
"minLength": 1
}
}
},
"then": {
"required": [
"cta_label"
],
"properties": {
"cta_label": {
"type": "string",
"minLength": 1
}
}
}
}
],
"properties": {
"title": {
"type": [
"string",
"null"
],
"maxLength": 10000,
"description": "Optional column heading."
},
"body": {
"type": "string",
"maxLength": 10000,
"description": "Optional bare text or sanitized inline HTML. Allowed tags: a, b, br, code, em, i, p, s, span, strong, and u. Use p or br for line breaks."
},
"image_url": {
"type": [
"string",
"null"
],
"format": "uri",
"maxLength": 2048,
"description": "Optional hosted HTTPS image URL."
},
"image_alt": {
"type": [
"string",
"null"
],
"maxLength": 10000,
"description": "Alt text for image_url."
},
"image_fit": {
"type": "string",
"enum": [
"natural",
"contain",
"cover"
],
"default": "natural",
"description": "Optional image sizing. Natural preserves the source ratio; contain shows the whole image in a 4:3 frame; cover crops to fill a 4:3 frame."
},
"cta_label": {
"type": [
"string",
"null"
],
"maxLength": 10000,
"description": "Optional call-to-action label."
},
"cta_url": {
"type": [
"string",
"null"
],
"maxLength": 2048,
"description": "Optional http, https, or mailto call-to-action URL."
}
}
},
"right": {
"type": "object",
"additionalProperties": false,
"description": "Right column content. Include at least one heading, body, image, or CTA field.",
"allOf": [
{
"anyOf": [
{
"required": [
"title"
],
"properties": {
"title": {
"type": "string",
"minLength": 1
}
}
},
{
"required": [
"body"
],
"properties": {
"body": {
"type": "string",
"minLength": 1
}
}
},
{
"required": [
"image_url"
],
"properties": {
"image_url": {
"type": "string",
"format": "uri",
"minLength": 1
}
}
},
{
"required": [
"cta_label",
"cta_url"
],
"properties": {
"cta_label": {
"type": "string",
"minLength": 1
},
"cta_url": {
"type": "string",
"minLength": 1
}
}
}
]
},
{
"if": {
"required": [
"cta_label"
],
"properties": {
"cta_label": {
"type": "string",
"minLength": 1
}
}
},
"then": {
"required": [
"cta_url"
],
"properties": {
"cta_url": {
"type": "string",
"minLength": 1
}
}
}
},
{
"if": {
"required": [
"cta_url"
],
"properties": {
"cta_url": {
"type": "string",
"minLength": 1
}
}
},
"then": {
"required": [
"cta_label"
],
"properties": {
"cta_label": {
"type": "string",
"minLength": 1
}
}
}
}
],
"properties": {
"title": {
"type": [
"string",
"null"
],
"maxLength": 10000,
"description": "Optional column heading."
},
"body": {
"type": "string",
"maxLength": 10000,
"description": "Optional bare text or sanitized inline HTML. Allowed tags: a, b, br, code, em, i, p, s, span, strong, and u. Use p or br for line breaks."
},
"image_url": {
"type": [
"string",
"null"
],
"format": "uri",
"maxLength": 2048,
"description": "Optional hosted HTTPS image URL."
},
"image_alt": {
"type": [
"string",
"null"
],
"maxLength": 10000,
"description": "Alt text for image_url."
},
"image_fit": {
"type": "string",
"enum": [
"natural",
"contain",
"cover"
],
"default": "natural",
"description": "Optional image sizing. Natural preserves the source ratio; contain shows the whole image in a 4:3 frame; cover crops to fill a 4:3 frame."
},
"cta_label": {
"type": [
"string",
"null"
],
"maxLength": 10000,
"description": "Optional call-to-action label."
},
"cta_url": {
"type": [
"string",
"null"
],
"maxLength": 2048,
"description": "Optional http, https, or mailto call-to-action URL."
}
}
},
"visibility": {
"$ref": "#/$defs/NewsletterBlockVisibility"
}
}
},
{
"type": "object",
"additionalProperties": false,
"required": [
"type",
"items"
],
"properties": {
"type": {
"type": "string",
"const": "link_list"
},
"title": {
"type": [
"string",
"null"
],
"maxLength": 10000,
"description": "Optional link list title."
},
"items": {
"type": "array",
"minItems": 1,
"maxItems": 20,
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"label",
"url"
],
"properties": {
"label": {
"type": "string",
"minLength": 1,
"maxLength": 180,
"description": "Link label."
},
"url": {
"type": "string",
"maxLength": 2048,
"description": "Absolute http, https, or mailto URL."
},
"description": {
"type": [
"string",
"null"
],
"maxLength": 10000,
"description": "Optional description shown under the link."
}
}
}
},
"visibility": {
"$ref": "#/$defs/NewsletterBlockVisibility"
}
}
},
{
"type": "object",
"additionalProperties": false,
"required": [
"type",
"body"
],
"properties": {
"type": {
"type": "string",
"const": "quote"
},
"body": {
"type": "string",
"minLength": 1,
"maxLength": 10000,
"description": "Bare text or sanitized inline HTML. Allowed tags: a, b, br, code, em, i, p, s, span, strong, and u. Use p or br for line breaks."
},
"cite": {
"type": [
"string",
"null"
],
"maxLength": 10000,
"description": "Optional quote citation."
},
"visibility": {
"$ref": "#/$defs/NewsletterBlockVisibility"
}
}
},
{
"type": "object",
"additionalProperties": false,
"required": [
"type"
],
"properties": {
"type": {
"type": "string",
"const": "divider"
},
"visibility": {
"$ref": "#/$defs/NewsletterBlockVisibility"
}
}
},
{
"type": "object",
"additionalProperties": false,
"required": [
"type"
],
"properties": {
"type": {
"type": "string",
"const": "spacer"
},
"height": {
"type": "integer",
"minimum": 8,
"maximum": 80,
"default": 24
},
"visibility": {
"$ref": "#/$defs/NewsletterBlockVisibility"
}
}
},
{
"type": "object",
"additionalProperties": false,
"required": [
"type",
"code"
],
"properties": {
"type": {
"type": "string",
"const": "code"
},
"code": {
"type": "string",
"minLength": 1,
"maxLength": 10000,
"description": "Code text."
},
"visibility": {
"$ref": "#/$defs/NewsletterBlockVisibility"
}
}
},
{
"type": "object",
"additionalProperties": false,
"required": [
"type",
"event_id"
],
"description": "An event's card: title, date and time in the event's time zone, location, and places left when capped, with Going and Not going buttons. Each email recipient gets their own answer links; the website, archive and test sends link to the event's public page, or show no buttons when the public page is off. Only an event of the newsletter's own organization and audience renders; any other event_id renders nothing. Events are created in the dashboard.",
"properties": {
"type": {
"type": "string",
"const": "event"
},
"event_id": {
"type": "string",
"pattern": "^nwsevt_[0-9a-z]{24}$",
"description": "A newsletter event (nwsevt_)."
},
"visibility": {
"$ref": "#/$defs/NewsletterBlockVisibility"
}
}
},
{
"type": "object",
"additionalProperties": false,
"required": [
"type",
"html"
],
"properties": {
"type": {
"type": "string",
"const": "custom_html"
},
"html": {
"type": "string",
"minLength": 1,
"maxLength": 250000,
"description": "Custom email-safe HTML fragment."
},
"visibility": {
"$ref": "#/$defs/NewsletterBlockVisibility"
}
}
}
],
"description": "Structured newsletter block. paragraph.body, quote.body, callout.body, list items, and column bodies accept bare text or restricted inline HTML. Shipmail sanitizes these values when it stores the blocks and renders email-safe HTML and text. Any block may carry a visibility that limits it to email or the website, or to readers in (or not in) one saved segment of the issue's audience."
},
"NewsletterBlockVisibility": {
"type": "object",
"additionalProperties": false,
"description": "Where the block shows and to which readers. Omit it to show the block everywhere. A visibility that limits nothing is dropped when the blocks are stored. The website, archive and feed show a block as a reader in no segment sees it. Segment membership is fixed when the send is scheduled. Welcome emails accept channel only. A web block cannot use segment_rule in, because website visitors are in no segment; web with not_in is stored as web alone.",
"properties": {
"channel": {
"type": "string",
"enum": [
"all",
"email",
"web"
],
"default": "all",
"description": "all shows the block in the email and on the website; email hides it on the website; web hides it in the email."
},
"segment_id": {
"type": [
"string",
"null"
],
"minLength": 1,
"maxLength": 64,
"default": null,
"description": "A newsletter segment (nwsseg_) of the issue's audience. Null shows the block to every reader."
},
"segment_rule": {
"type": "string",
"enum": [
"in",
"not_in"
],
"default": "in",
"description": "in shows the block only to readers in the segment; not_in shows it to everyone else. Ignored without segment_id."
}
}
}
}
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/shipmail-to-update-newsletter-request"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.