Documentation
Sign inGet started

bird contacts update

Usage

Exemple de code
bird contacts update <contact-id> [flags]

Description

Update a contact's name, email, external-id, or custom data.
Only the fields you pass change. --data is merged into the contact's existing data; a data key set to null via --body-file removes just that key, e.g. {"data": {"plan": null}}.
Build the request from flags, a JSON ContactUpdateRequest 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

Exemple de code
# print the body shape (no credentials needed)
bird contacts update --example

# the body it prints:
Exemple de code
{
  "first_name": "Alice",
  "last_name": "Anderson"
}
Exemple de code
# rename a contact
bird email contacts update con_123 --first-name Jane

# merge custom data (a null value removes that key)
bird email contacts update con_123 --data '{"plan":"pro"}'

Options

Contact

NameDescription
--emailNew email address; must be unique in the workspace
--first-nameThe contact's first name
--last-nameThe contact's last name
--external-idYour own identifier for this contact
--dataCustom property values to merge, as a JSON object, e.g. --data '{"plan":"pro"}'

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 contacts batchCreate or update many contacts in one request, matched by email.
bird contacts createCreate a contact by email address.
bird contacts deleteDelete a contact
bird contacts getGet a contact
bird contacts listList contacts