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

Update 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.

Body parameters

additional_enabled_plansOptional

Additional plans enabled by the appointed organization

Type:Array&#x3C;<a href="/docs/content-management-api/resources/per_owner_pricing_plan">ResourceLinkage&#x3C;"per_owner_pricing_plan"></a>>

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.update(
organizationMandateId,
{ id: "312" },
);
// 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" },
}