Show examples in:
JavascriptHTTP
Endpoint info
Available examples
Dashboard API > Organization mandate

Cancel an organization mandate

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.

Returns

Returns a resource object of type organization_mandate

Examples

import { buildClient } from "@datocms/dashboard-client";
async function run() {
const client = buildClient({ apiToken: process.env.DATOCMS_API_TOKEN });
const organizationMandateId = "312";
const organizationMandate = await client.organizationMandates.destroy(
organizationMandateId,
);
// Check the 'Returned output' tab for the result ☝️
console.log(organizationMandate);
}
run();
{
id: "312",
meta: {
appointed_organization_name: false,
mandator_organization_name: false,
},
active_plan: { type: "per_owner_pricing_plan", id: "124" },
additional_enabled_plans: [{ type: "per_owner_pricing_plan", id: "124" }],
mandator_organization: { type: "organization", id: "124" },
appointed_organization: { type: "organization", id: "124" },
}