Turn the patient-data setting on or off
With `patient_data: true` the organization stays off home-connection addresses: a customer's own proxy and addresses resold from a provider are refused with `conflict` (`field: patient_data`), and what already routes through one stops carrying at once, with refused connections, never by sending the traffic from Pod's own addresses instead.
With patient_data: true the organization stays off home-connection addresses: a customer's own proxy and addresses resold from a provider are refused with conflict (field: patient_data), and what already routes through one stops carrying at once, with refused connections, never by sending the traffic from Pod's own addresses instead. Nothing is deleted. Turning it off lets them back in. People only: a signed-in owner or admin with a fresh second factor. An API key, and a person whose second factor is not fresh, answer person_required; another role answers forbidden.
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 PATCH "https://api.pod.mapier.ai/v1/network" \
-H "Authorization: Bearer $POD_PERSON_TOKEN" \
-H "Content-Type: application/json" \
-d '{"patient_data":true}'Parameters
| Name | In | Type | Required | What it is |
|---|---|---|---|---|
Idempotency-Key | header | string | No | Makes a repeat of this call safe for 24 hours. |
Body
| Field | Type | Required | What it is |
|---|---|---|---|
patient_data | boolean | Yes |
Answer
200. The settings as they count now.
{
"organisation": "org_3ahrz6dmv29gqy5ckt18fp",
"patient_data": false,
"patient_data_set_by": null,
"patient_data_set_at": null,
"customer_cells": ["example"],
"entitlements": [
{
"feature": "custom_domains",
"allowed": false,
"reasons": ["standing"]
}
],
"limits": {
"max_domains": 0,
"max_static_addresses": 0,
"max_private_ranges": 0,
"max_proxies": 0,
"max_leases": 0
}
}| Field | Type | Always | What it is |
|---|---|---|---|
organisation | string | Yes | |
patient_data | boolean | Yes | While true, the organization stays off home-connection addresses. |
patient_data_set_by | string | null | Yes | The person who last changed it. |
patient_data_set_at | string | null | Yes | |
customer_cells | string[] | Yes | The cells inside the organization's own cloud account, by tag. Private ranges are registered at such a cell's endpoint; empty for an organization that has none. |
entitlements | NetworkFeatureEntitlement[] | Yes | One entry per network feature. |
limits | NetworkLimits | Yes | The organization's network limits: its own where staff set one, else the plan's. Per project for max_static_addresses (at each site) and max_proxies, unless a project has its own. |
Errors
The refusals this call is known for: invalid, forbidden, person_required. 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.network.setPatientData(on) |
| Python | pod.network.set_patient_data(on) |