Dashboard API > Account subscription
Validate a new subscription
Warning: Experimental API
Please note that the Dashboard API is an experimental, prerelease API. This API method is considered unstable, and should be avoided in production environments and automations. Changes may occur at any time without warning.
Body parameters
planRequired
Subscription plan
Type:<a href="/docs/content-management-api/resources/per_owner_pricing_plan">ResourceLinkage<"per_owner_pricing_plan"></a>
Examples
import { buildClient } from "@datocms/dashboard-client";
async function run() { const client = buildClient({ apiToken: process.env.DATOCMS_API_TOKEN });
await client.perOwnerPricingSubscription.validate({ plan: { type: "per_owner_pricing_plan", id: "124" }, });}
run();