Change the organization's data and privacy settings

People only, with a fresh second factor: an owner or an admin.

PUT/v1/organisations/{org_id}/privacy

People only, with a fresh second factor: an owner or an admin. Switches left out keep their value. Turning zero_data_retention on erases data at every stop, so it also needs confirm set to erase at every stop (invalid without it). The settings travel in the signed standing list, and every server of the organization applies them within 60 seconds; a sandbox running when a switch changes follows it from its next stop.

For people only: a signed-in person with a fresh second factor makes this call, from the dashboard. Any API key is refused with person_required.

Request

curl -X PUT "https://api.pod.mapier.ai/v1/organisations/org_3ahrz6dmv29gqy5ckt18fp/privacy" \
  -H "Authorization: Bearer $POD_PERSON_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"zero_data_retention":true}'

Parameters

NameInTypeRequiredWhat it is
org_idpathstringYes
Idempotency-KeyheaderstringNoMakes a repeat of this call safe for 24 hours.

Body

FieldTypeRequiredWhat it is
zero_data_retentionbooleanNo
snapshots_offbooleanNo
monitoring_offbooleanNo
confirmstringNoerase at every stop, when turning zero data retention on.

Answer

200. The settings as changed.

200
{
  "organisation": "org_3ahrz6dmv29gqy5ckt18fp",
  "settings": {
    "zero_data_retention": false,
    "snapshots_off": false,
    "monitoring_off": false
  },
  "effective": {
    "zero_data_retention": false,
    "snapshots_off": false,
    "monitoring_off": false
  },
  "set_by": null,
  "set_at": null
}
FieldTypeAlwaysWhat it is
organisationstringYes
settingsPrivacySettingsYes
effectivePrivacySettingsYes
set_bystring | nullYesThe identity account that last changed them.
set_atstring | nullYes

Errors

The refusals this call is known for: invalid, person_required, forbidden, not_found, conflict. Any call can also answer unauthorized, rate_limited, unavailable or internal; the error list says what each means and when to send the call again.

In the SDKs

ClientCall
TypeScriptpod.organisations.setPrivacy(orgId, { … })
Pythonpod.organisations.set_privacy(org_id, …)