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

Request a new 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.

Query parameters

auto_approvestring

If the account is also part of the target organization, the request can be automatically approved

Example:"true"

Body parameters

approver_organizationRequired

Organization approving the mandate

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

Examples

import { buildClient } from "@datocms/dashboard-client";
async function run() {
const client = buildClient({ apiToken: process.env.DATOCMS_API_TOKEN });
const organizationMandateRequest =
await client.organizationMandateRequests.create({
approver_organization: { type: "organization", id: "124" },
});
// Check the 'Returned output' tab for the result ☝️
console.log(organizationMandateRequest);
}
run();
{
id: "312",
meta: {
requester_organization_name: false,
approver_organization_name: false,
},
approver_organization: { type: "organization", id: "124" },
requester_organization: { type: "organization", id: "124" },
}