domains

POST /v1/domains/bulk-actions/preview

What a bulk domain action would do, per domain, before you confirm it.

All domains endpoints

All developer docs →

Zinn®, our Viking, hammering at his anvil beside an API endpoint sending events to several listeners.

Authentication

Send an API key as a bearer token. The key must carry the sites.view permission; a key without it is refused with 403, not 404.

This endpoint takes no organisation id. Your key already identifies the organisation it belongs to, and the response is scoped to it.

Try it

Replace anything in angle brackets with your own values, and the key placeholder with a key from your dashboard.

curl -X POST https://api.zinndigital.com/v1/domains/bulk-actions/preview \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{ "action": <string<auto_renew_on, auto_renew_off, lock_on, lock_off, privacy_on, privacy_off, nameservers, contact>>, "domain_ids": <string[]> }'

Signed in? The API console in your dashboard fills in your real organisation id and your own key, and runs the request against the live API so you can see the actual response. Open this endpoint in the API console

Details

P4-061. For auto-renew on/off, transfer lock on/off, WHOIS privacy on/off, a nameserver change or a registrant contact change across a selection, answers per domain: change (it will be changed), no_change (already set), cannot (with the same refusal the one-domain screen gives: not active yet, listed for sale, inside a free domain's stay term), unsupported (registered at another registrar in an account the customer linked, named in via, whose connection cannot write this setting yet; the domain's page carries the steps) or elsewhere (registered at another registrar no linked account holds, so it is changed there). A nameserver change to a domain held in a linked account answers change with via: it is written through that connection. ⛔ POST for a read: nothing is written and no registrar is called. The verb is a transport decision, because a selection of several hundred ids does not fit a query string. At most 500 ids per call; a domain outside the caller's scope is simply absent. Requires sites.view.

Request body

NameTypeRequiredWhat it is
actionstring<auto_renew_on, auto_renew_off, lock_on, lock_off, privacy_on, privacy_off, nameservers, contact>Yes—
domain_idsstring[]YesEach domain once. At most 500 for a preview, 25 for an apply.
nameserversstring[]NoRequired for nameservers.
forcebooleanNoFor nameservers, the override for the empty-apex refusal (see setNameservers).
contactDomainContactNoAn ICANN registrant contact. Every field is required on write — a registrant change is one record, not a set of independently patchable fields.

Response

NameTypeRequiredWhat it is
actionstringYes—
rowsDomainBulkPreviewRow[]Yes—
countsobjectYes—

Errors this endpoint can return

401 · 403 · 422 · 429