Api referenceApiOperationsSlimThresholdSlim/Threshold/Patient

Update patient threshold (closed)

  • Sandbox: available
  • On your own host? Choose https://{host} in the playground.
PUT
/v1/slim/threshold/patient/{patientId}

Saves one resident's own thresholds (closed).

Closed. This v1 save route answers 410 Gone and writes nothing. Use PUT /v2/slim/threshold/patient/{patientId}.

Auth: The access policy must grant Goal:update (an admin or super admin who holds no access policy skips this check). Scope: The resident must be in the caller's project (from the token) or one of its sub-projects.

Behaviour

  • Every call answers 410 as application/problem+json, whatever the body says; the detail names the v2 route.
  • The GET routes of this path are unchanged.

Example

curl -X PUT 'https://api.sandbox.ovok.com/v1/slim/threshold/patient/c3499c27-2973-0a7f-807e-fb8676a92dcb' \  -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE3NjcyNjg4MDAsImV4cCI6MTc2NzI3MjQwMH0.Ql3B_ztDvctlyZ2z0vp4sl3ExXRQGkzmxdmTAqxNzZk' \  -H 'Content-Type: application/json' \  -d '{}'
{ "status": 410, "detail": "This v1 save route is closed. Use PUT /v2/slim/threshold/patient/{patientId}." }

Who can call it: a practitioner, a project admin or a System Owner session. See roles.

Authorization

bearer
headerAuthorizationBearer <JWT>

Response Body

Bearer token is missing, invalid or expired.

application/problem+json
  1. response
type*string
Formaturi
status*integer
detail*string
instance*string
traceId*string
errors*array<>
statusCode*integerDeprecated
error?stringDeprecated
message*string|array<>Deprecated
timestamp*stringDeprecated
Formatdate-time
path*stringDeprecated
requestId?stringDeprecated
Example Request
curl -X PUT 'https://api.sandbox.ovok.com/v1/slim/threshold/patient/{patientId}'
Example Response
{  "type": "https://docs.ovok.com/errors/unauthenticated",  "status": 401,  "detail": "Bearer token is missing, invalid or expired.",  "instance": "/v1/slim/threshold/patient/{patientId}",  "traceId": "4bf92f3577b34da6a3ce929d0e0e4736",  "errors": [],  "statusCode": 401,  "error": "Unauthorized",  "message": "Bearer token is missing, invalid or expired.",  "timestamp": "2026-01-01T12:00:00.000Z",  "path": "/v1/slim/threshold/patient/{patientId}",  "requestId": "0f8fad5b-d9cb-469f-a165-70867728950e"}