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

typestringRequired

Must be exactly "organization_mandate".

relationships.additional_enabled_plans.dataOptional

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

PUT https://site-api.datocms.com/organization-mandates/:organization_mandate_id HTTP/1.1
Authorization: Bearer YOUR-API-TOKEN
Accept: application/json
X-Api-Version: 3
Content-Type: application/vnd.api+json
{
"data": {
"type": "organization_mandate",
"id": "312",
"relationships": {}
}
}
Terminal window
curl -g 'https://site-api.datocms.com/organization-mandates/:organization_mandate_id' \
-X PUT \
-H "Authorization: Bearer YOUR-API-TOKEN" \
-H "Accept: application/json" \
-H "X-Api-Version: 3" \
-H "Content-Type: application/vnd.api+json" \
--data-binary '{"data":{"type":"organization_mandate","id":"312","relationships":{}}}'
await fetch(
"https://site-api.datocms.com/organization-mandates/:organization_mandate_id",
{
method: "PUT",
headers: {
Authorization: "Bearer YOUR-API-TOKEN",
Accept: "application/json",
"X-Api-Version": "3",
"Content-Type": "application/vnd.api+json",
},
body: JSON.stringify({
data: { type: "organization_mandate", id: "312", relationships: {} },
}),
},
);
HTTP/1.1 200 OK
Content-Type: application/json
Cache-Control: cache-control: max-age=0, private, must-revalidate
X-RateLimit-Limit: 30
X-RateLimit-Remaining: 28
{
"data": {
"type": "organization_mandate",
"id": "312",
"meta": {
"appointed_organization_name": false,
"mandator_organization_name": false
},
"relationships": {
"active_plan": {
"data": {
"type": "per_owner_pricing_plan",
"id": "124"
}
},
"additional_enabled_plans": {
"data": [
{
"type": "per_owner_pricing_plan",
"id": "124"
}
]
},
"mandator_organization": {
"data": {
"type": "organization",
"id": "124"
}
},
"appointed_organization": {
"data": {
"type": "organization",
"id": "124"
}
}
}
}
}