Safety

Update the tenant safety defaults

Updates tenant-wide safety defaults per limit profile and budget row; affects every account that hasn't overridden the field, immediately. Fields, posture and precedence: /reference/safety.

patch/v1/safety-policy

Request

  • Base URL: https://api.curviate.com
  • URL: https://api.curviate.com/v1/safety-policy
  • Auth: HTTP bearer

Request body

tenant_default_posture'warn' | 'enforce' nullable

The tenant-wide posture default every account inherits unless it overrides it. Null clears it back to warn.

objectunknown
impactunknown

Response

The tenant safety defaults as they now read, plus the impact of this write.

object'tenant_safety_policy'

Response type discriminator.

tenant_default_posture'warn' | 'enforce' | 'null' nullable

The workspace-wide posture default every account in the tenant inherits, or null when none is set. Always present, and separate from posture on purpose: when this account overrides the tenant default, a change to the tenant default does not move posture, and this field is how you can still see it took effect.

Example response

{
  "safety_warning": {
    "row": "profile_views",
    "reset_at": "2026-09-05T00:00:00.000Z",
    "hint": {
      "parameter": "profile_views.ceiling",
      "message": "This account is at its ceiling for profile_views. This action went through because profile_views.posture is warn, and it counted: 101 of 100 this window. Raise profile_views.ceiling, or wait for the window to reset at 2026-09-05T00:00:00.000Z."
    },
    "reason": "ceiling",
    "blocked": false
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.