Update auto-renew for a domain
PATCH
https://api.vercel.com/v1/registrar/domains/{domain}/auto-renewUpdate the auto-renew setting for a domain
Request
import { Vercel } from "@vercel/sdk";
const vercel = new Vercel({ bearerToken: "<YOUR_BEARER_TOKEN_HERE>",});
async function run() { await vercel.domainsRegistrar.updateDomainAutoRenew({ domain: "worthwhile-dwell.net", teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l", requestBody: { autoRenew: true, }, });
}
run();Response
{}Errors
{ "status": "400", "code": "domain_already_renewing", "message": "string"}AuthorizationbearerToken
Default authentication mechanism
204Success
400There was something wrong with the request
404The domain was not found in our system.
429TooManyRequests