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.

PATCH/v1/network

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

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

Body

FieldTypeRequiredWhat it is
patient_databooleanYes

Answer

200. The settings as they count now.

200
{
  "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
  }
}
FieldTypeAlwaysWhat it is
organisationstringYes
patient_databooleanYesWhile true, the organization stays off home-connection addresses.
patient_data_set_bystring | nullYesThe person who last changed it.
patient_data_set_atstring | nullYes
customer_cellsstring[]YesThe 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.
entitlementsNetworkFeatureEntitlement[]YesOne entry per network feature.
limitsNetworkLimitsYesThe 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

ClientCall
TypeScriptpod.network.setPatientData(on)
Pythonpod.network.set_patient_data(on)