Update a domain registration

Changed on

<Info>This API is in beta. Endpoints, fields, and behavior may still change, so avoid depending on it in production.</Info>

Turns automatic renewal on or off for a domain bought through Base44 for the app. Pass the domain's domain_id from List domain registrations.

With automatic renewal off, the domain lapses when its current period ends, at the expires_at that List domain registrations reports. Turning it back on renews the domain at that point, charged to the payment method on the domain's subscription. The workspace's billing page lists that subscription.

A successful call returns no body. It means the registrar accepted the change. List domain registrations can take a short while to show it, so read it again rather than relying on the first read.

If the registrar can't be reached, the change may not have been made. Read the registration before you retry.

Only a workspace owner can change a registration, because renewal is managed for the whole workspace. Domains you own elsewhere can't be changed here. Their renewal lives with your own registrar.

patch/api/apps/{app_id}/custom-domains/{domain_id}/registration

Request

  • Base URL: https://app.base44.com
  • URL: https://app.base44.com/api/apps/{app_id}/custom-domains/{domain_id}/registration
  • Auth: HTTP bearer

Path parameters

app_idstring required

ID of the app the domain belongs to.

domain_idstring required

ID of the custom domain. Get this from List custom domains.

Request body

auto_renewboolean required

Whether the registration renews automatically (true) or lapses at the end of its current period (false).

Response

The registrar accepted the change.

Changes