Skip to main content

Persist highlighted health observations

1 min read
post/health/profiles/{studioId}/metrics/ai/highlight-observations
Request example
Response
post/health/profiles/{studioId}/metrics/ai/highlight-observations

Authorization

Authorizationstringheaderrequired#
Better Auth session token. Go resolves the token in the session table and maps it to users.id via auth_user_id. The profile is taken from the path param :studioId when applicable.

Path parameters

studioIdstringrequired#
Studio identifier used for authorization and operation scope.

Body

application/json
operationIdstringrequired#
leaseOwnerstringrequired#
fencingTokenintegerrequired#
metricIdstringrequired#
rangeKeystringrequired#
timeZonestringrequired#
sourceVersionintegerrequired#
selectedCandidateIdsstring[]required#

Items: max 3

Responses

application/json
Applied observations.
dataobjectrequired#
Show child attributes
statusstringrequired#
findingsobject[]required#
Show child attributes
idstringrequired#
kindstringrequired#
rangeKeystringrequired#
reasonCodestringrequired#
evidenceIdsstring[]required#
sourceFingerprintstringrequired#
sourceVersionintegerrequired#
dismissedAtstring#
changedCountintegerrequired#
skippedCountintegerrequired#