Navigate...

K

Replace Recipients

sdk.distributions.replaceRecipients(id, req)

Replace all recipients on a DRAFT distribution. This is a full replacement — all existing recipients are removed and replaced with the new list. Use this to update the recipient list after creating a draft, or to correct recipients before preparing.

This is a full replacement, not an append. All existing recipients are removed and replaced with the new array.

API key required to run methods

API Key *

Don't have an API key?Get one at dashboard.multisender.app

Base URL

id

string

required

Distribution ID (must be in DRAFT status)

Distribution ID

request.recipients

RecipientDto[]

required

New recipients array [{ address, amount, label?, tags? }] — replaces all existing

Recipients (JSON)

JSON array of { address, amount, label?, tags? }

Returns

Distribution

Updated distribution with new recipient count and total amount

id

string

Distribution identifier

status

string

DRAFT

totalRecipients

number | null

Updated recipient count

totalAmount

string | null

Updated total amount

updatedAt

string

ISO 8601 last update timestamp

Errors

400

Invalid distribution id

401

The request is not authorized

403

You do not have permission to access this resource

404

Distribution not found

409

Not in DRAFT status

See Also

prepare()

Prepare calldata after finalizing recipients

Previous

updateDraft()

Next

prepare()

Generated Code