Create or update a subscriber.
create_or_update_subscriberCreate or update a Flodesk subscriber record by email or ID with names, segments, custom fields, and opt-in details.
Instructions
Create or update a subscriber.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | The subscriber's `id`. Either `email` or `id` must be included. | |
| No | The subscriber's `email`. Either `email` or `id` must be included. | ||
| account | No | Exact configured private account profile label; not a tenant or provider account ID. | |
| confirm | No | Must be true for the requested mutation or exclusive private output file. | |
| payload | No | Complete native JSON body; do not mix with body flags or payload_file. Arrays use repeated JSON object flags or a whole native array in a private file. | |
| optin_ip | No | IP address from which the subscriber confirmed their opt-in. | |
| last_name | No | The subscriber's last name. | |
| first_name | No | The subscriber's first name. | |
| segment_ids | No | The segments this subscriber will be added to. Cap at `50`. | |
| double_optin | No | Whether or not to require the subscriber to confirm subscription via email. This option is only available to set with new subscriber creation. Default to `false` if not indicated. | |
| payload_file | No | Absolute regular non-symlink JSON body file, at most 1 MiB. Cannot mix with payload/body flags. | |
| custom_fields | No | An object containing custom field data. E.g. ``` "favorite_color": "Lavender" ```. | |
| optin_timestamp | No | The date and time the subscribers confirmed their opt-in in ISO 8601 format. E.g. `2023-01-02T15:04:05.999Z`. |