vetsgpt

Set VetsGPT patient context

Owner only: attaches one patient to the chat as context, replacing any previous patient. For new questions VetsGPT uses the patient's details, up to five recent clinical notes and up to five analysed patient files, but only while no consultations are attached (attached consultations bring their own patient). Existing questions retain their captured context on retry. Returns 404 when the chat does not exist or the caller is not its owner.

put/workspaces/{workspaceId}/vetsgpt/chats/{chatId}/attachments/patient

Request

  • Base URL
    https://vetnio.com/api/v2
  • URL
    https://vetnio.com/api/v2/workspaces/{workspaceId}/vetsgpt/chats/{chatId}/attachments/patient
  • Auth
    HTTP bearer

Path parameters

workspaceIdstring required

Identifier of the workspace (clinic). The caller must be a member, and VetsGPT must be enabled for them in this workspace.

Example:furunculotic-loud-chihuahua
chatIdstring required

Identifier of a VetsGPT chat owned by or explicitly shared with the caller. Unshared chats behave as if they did not exist.

Example:3f9c2a71-5b8e-4d1a-9c47-0e6b2d8f1a53

Request body

patientIdstring required

Patient to attach. Replaces any patient already attached. Not validated; an unknown id is stored but gives no context.

Example request

{
  "patientId": "f2a3b4c5-d6e7-4890-fabc-012345678901"
}

Response

The patient context was attached.

successboolean required

Always true on success; failures are returned as errors.

Example response

{
  "success": true
}

Changes

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