Sign inGet started

bird email unsubscribe-page update

Usage

Contoh kode
bird email unsubscribe-page update [flags]

Description

Restyle the hosted page a marketing recipient lands on when they unsubscribe
Every field is nullable, and a null returns that one to the built-in style: the page shows the company name again, or its automatic dark theme. No flag sends a null, so a reset needs an explicit null in the request body, and --body-file takes a path or "-" for stdin, never inline JSON. Setting any color fixes the palette and turns the dark theme off, so set all three or none. Changes reach new page views within a few minutes, and links already sent pick them up.
Build the request from flags, a JSON EmailUnsubscribePageUpdate body via --body-file ("-" reads stdin), or both — a flag overrides the matching body field. Run --example to print a ready-to-edit body, or --dry-run to print the resolved request without sending it.

Examples

Contoh kode
# print the body shape (no credentials needed)
bird email unsubscribe-page update --example

# the body it prints:
Contoh kode
{
  "accent_color": "#2563eb",
  "background_color": "#fafaf9",
  "name": "Acme",
  "text_color": "#100f0c"
}
Contoh kode
# name the sender the page shows
bird email unsubscribe-page update --name Acme

# fix the whole palette
bird email unsubscribe-page update --background-color '#fafaf9' --text-color '#100f0c' --accent-color '#2563eb'

# clear the sender name (a null only reaches the wire on stdin)
echo '{"name": null}' | bird email unsubscribe-page update --body-file -

# return every color to the built-in style
echo '{"background_color": null, "text_color": null, "accent_color": null}' | bird email unsubscribe-page update --body-file -

Options

Appearance

NameDescription
--nameSender name the page shows (e.g. "Acme")
--background-colorPage background, hex (e.g. "#fafaf9")
--text-colorPage text, hex (e.g. "#100f0c")
--accent-colorConfirm button, hex (e.g. "#2563eb")

Request

NameDescription
--body-fileRead the JSON request body from this file; "-" reads stdin
--examplePrint a complete example request body, then exit
--dry-runPrint the resolved request without sending it, then exit
--idempotency-keyDeduplication key; a retry with the same key won't act twice

Options

NameDescription
--response-schemaPrint the fields this command returns, then exit
NameDescription
bird email unsubscribe-page getGet the unsubscribe-page settings