Dashboard API > Organization
Update an organization
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".
attributes.namestringOptional
Name of the organization
Returns
Returns a resource object of type organization.
Examples
PUT https://site-api.datocms.com/organizations/:field_id_or_api_key HTTP/1.1Authorization: Bearer YOUR-API-TOKENAccept: application/jsonX-Api-Version: 3Content-Type: application/vnd.api+json
{ "data": { "id": "124", "type": "organization", "attributes": {} }}curl -g 'https://site-api.datocms.com/organizations/:field_id_or_api_key' \ -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":{"id":"124","type":"organization","attributes":{}}}'await fetch("https://site-api.datocms.com/organizations/:field_id_or_api_key", { 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: { id: "124", type: "organization", attributes: {} }, }),});HTTP/1.1 200 OKContent-Type: application/jsonCache-Control: cache-control: max-age=0, private, must-revalidateX-RateLimit-Limit: 30X-RateLimit-Remaining: 28
{ "data": { "type": "organization", "id": "124", "attributes": { "name": "" }, "meta": { "discount_on_public_plans": 20, "agency_partner": null }, "relationships": { "active_subscription": { "data": { "type": "per_owner_pricing_subscription", "id": "124" } }, "billing_profile": { "data": null } } }}