Nirmos
Data governance

Update Organization Privacy

Update Organization Privacy — Nirmos Control Plane REST API.

PATCH
/v1/organizations/{id}/privacy

Authorization

better-auth.session_token<token>

Production cookie uses __Secure- prefix.

In: cookie

Path Parameters

id*string
Length1 <= length <= 128

Request Body

application/json

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PATCH "https://example.com/v1/organizations/string/privacy" \  -H "Content-Type: application/json" \  -d '{    "expectedRevision": 0,    "policy": {      "version": 1,      "logging": {        "input": true,        "output": true,        "samplingPercent": 0,        "retentionSeconds": 1,        "redactionPaths": [          null        ]      },      "usage": {        "retentionSeconds": 1      },      "audit": {        "retentionSeconds": 2592000      },      "images": {        "allowedModes": [          null        ],        "defaultMode": "transient",        "temporaryTtlSeconds": 1,        "maxTemporaryTtlSeconds": 1,        "persistentRetentionSeconds": 1      },      "uploads": {        "allowed": true,        "retentionSeconds": 1      },      "memory": {        "allowed": true,        "enabled": true,        "retentionSeconds": 1,        "episodeContent": true,        "evidenceContent": true      },      "history": {        "enabled": true,        "retentionSeconds": 1      },      "cache": {        "enabled": true,        "ttlSeconds": 1,        "shared": true      },      "knowledge": {        "allowed": true,        "retentionSeconds": 1      },      "prompts": {        "allowed": true,        "retentionSeconds": 1      },      "evaluations": {        "enabled": true,        "retentionSeconds": 1      },      "deferred": {        "enabled": true,        "retentionSeconds": 1      },      "allowedProviderIds": [        "string"      ]    }  }'
{  "data": {    "processingStatus": "active",    "policy": {      "version": 1,      "logging": {        "redactionPaths": []      },      "usage": {},      "audit": {},      "images": {        "allowedModes": []      },      "uploads": {},      "memory": {},      "history": {},      "cache": {},      "knowledge": {},      "prompts": {},      "evaluations": {},      "deferred": {},      "allowedProviderIds": [        null      ]    },    "effectivePolicy": {      "version": 1,      "logging": {        "redactionPaths": []      },      "usage": {},      "audit": {},      "images": {        "allowedModes": []      },      "uploads": {},      "memory": {},      "history": {},      "cache": {},      "knowledge": {},      "prompts": {},      "evaluations": {},      "deferred": {},      "allowedProviderIds": [        null      ]    },    "revision": 0,    "organizationRevision": 0  },  "requestId": "string"}
{  "error": {    "code": "string",    "message": "string",    "details": null,    "requestId": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "details": null,    "requestId": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "details": null,    "requestId": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "details": null,    "requestId": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "details": null,    "requestId": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "details": null,    "requestId": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "details": null,    "requestId": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "details": null,    "requestId": "string"  }}
{  "error": {    "code": "string",    "message": "string",    "details": null,    "requestId": "string"  }}