Change the organization's data and privacy settings
People only, with a fresh second factor: an owner or an admin.
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
| Name | In | Type | Required | What it is |
|---|---|---|---|---|
org_id | path | string | Yes | |
Idempotency-Key | header | string | No | Makes a repeat of this call safe for 24 hours. |
Body
| Field | Type | Required | What it is |
|---|---|---|---|
zero_data_retention | boolean | No | |
snapshots_off | boolean | No | |
monitoring_off | boolean | No | |
confirm | string | No | erase at every stop, when turning zero data retention on. |
Answer
200. The settings as changed.
{
"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
}| Field | Type | Always | What it is |
|---|---|---|---|
organisation | string | Yes | |
settings | PrivacySettings | Yes | |
effective | PrivacySettings | Yes | |
set_by | string | null | Yes | The identity account that last changed them. |
set_at | string | null | Yes |
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
| Client | Call |
|---|---|
| TypeScript | pod.organisations.setPrivacy(orgId, { … }) |
| Python | pod.organisations.set_privacy(org_id, …) |