Update client settings

Markdown
PATCH /v1/client/settings

Update the saved preferences that your workspace uses for future reports. Send only the fields you intend to change, together with expected_revision from a recent settings read. Any active workspace API key can perform this update, so keep integration keys private.

Omitted fields stay unchanged. Empty strings clear instruction fields, while null values and empty updates are rejected. A supplied standards_text must be a valid, nonempty standards library. Changes apply to subsequent reports; reports already running keep their settings snapshot.

Make a small, deliberate change

First call GET /v1/client/settings. For example, if its revision is 3, send expected_revision: 3 together with the new style_instructions. Use the revision returned by the API rather than copying a revision number from an example. The successful response contains the saved settings and the new revision.

SettingWhat belongs hereExample instruction
standards_textYour study-specific report standards, each identified by its own label.MRI-LSP followed by your approved lumbar spine report wording.
transcription_instructionsTerminology guidance for recognizing the spoken words.Preserve laterality, measurements, and negation exactly as dictated.
dictation_conventionsHow to interpret spoken commands and corrections when building the report.Treat “new paragraph” as a paragraph break and apply explicit spoken corrections.
style_instructionsPreferences for wording, organization, and the level of certainty in the report.Use concise sentences and keep the impression focused on the key conclusions.

Handle a revision conflict

A 409 means someone else saved changes after your read. Read the current settings again, preserve unrelated changes, and decide how to combine the edits before retrying with the new expected_revision. Do not automatically replace all fields with your older copy.

If an agent manages settings, require a deliberate preference-saving action. It should never turn ordinary report dictation into a settings update. Put study templates in standards_text and use the three instruction fields for their distinct purposes.

Standards and instructions

Authentication

Create a named API key in your workspace’s API keys tab, then send it in the Authorization header on each API request. Your key connects the integration to that workspace’s saved settings and Word templates. Signing into the website does not replace this header in an API integration.

Authorization: Bearer <API_KEY>

Keep the key in your application’s server-side secret configuration. It is shown only once when created, so save it securely then. Do not place it in browser code, logs, version control, or a prompt sent to your coding agent. You can revoke an integration’s key from the workspace without changing the other keys.

Request

application/json
NameTypeRequiredConstraintsDescription
expected_revisionintegerYesminimum=0.0revision from your most recent settings read. A stale value returns 409 instead of overwriting newer settings.
standards_textstringNomaxLength=200000Replace the saved standards library. Must contain at least one recognized unique label; cannot be empty. Omit to preserve it.
transcription_instructionsstringNomaxLength=20000Replace terminology guidance. Omit to preserve it; an empty string clears it. Null is rejected.
dictation_conventionsstringNomaxLength=20000Replace spoken-command and correction rules. Omit to preserve them; an empty string clears them. Null is rejected.
style_instructionsstringNomaxLength=20000Replace report-writing preferences. Omit to preserve them; an empty string clears them. Null is rejected.
technique_instructionsTechniqueInstructionsNo——
groupsarray<SettingsGroup>NominItems=1; maxItems=100—

Request examples

{
  "expected_revision": 0,
  "style_instructions": ""
}

Example

BASE_URL=https://radiologydictation.com

curl --request PATCH "$BASE_URL/v1/client/settings" \
  --header "Authorization: Bearer $API_KEY" \
  --header "Content-Type: application/json" \
  --data '{"expected_revision": 0, "style_instructions": ""}'

Responses

StatusDescriptionType
200Successful ResponseClientSettings · application/json
401Invalid or missing API key—
429Too many attempts. Please try again later.—
503Service is unavailable. Please try again.—
400Standards must have unique study IDs, such as MRI-LSP.—
413Request is too large.object · application/json
415JSON request required.object · application/json
409Your changes were not saved. Reload settings before trying again.—
422Validation ErrorHTTPValidationError · application/json

Response headers · 429

HeaderTypeDescription
Retry-Afterinteger—

Schemas

ClientSettings

NameTypeRequiredConstraintsDescription
standards_textstringNomaxLength=200000; default=""Your saved study-specific report wording. Begin each standard with a unique uppercase, hyphen-separated label on its own line, such as MRI-LSP.
transcription_instructionsstringNomaxLength=20000; default=""Terminology guidance used when recognizing spoken words, such as medical names, laterality, and measurements.
dictation_conventionsstringNomaxLength=20000; default=""Rules for interpreting spoken commands and corrections when constructing the report.
style_instructionsstringNomaxLength=20000; default=""Preferences for report wording, organization, and expression of certainty.
technique_instructionsTechniqueInstructionsNo——
pathology_textstringNomaxLength=200000; default=""—
revisionintegerNominimum=0.0; default=0The saved settings version. Send this value as expected_revision when preparing an update.
groupsarray<SettingsGroup>NominItems=1; maxItems=100—

ClientSettingsUpdate

NameTypeRequiredConstraintsDescription
expected_revisionintegerYesminimum=0.0revision from your most recent settings read. A stale value returns 409 instead of overwriting newer settings.
standards_textstringNomaxLength=200000Replace the saved standards library. Must contain at least one recognized unique label; cannot be empty. Omit to preserve it.
transcription_instructionsstringNomaxLength=20000Replace terminology guidance. Omit to preserve it; an empty string clears it. Null is rejected.
dictation_conventionsstringNomaxLength=20000Replace spoken-command and correction rules. Omit to preserve them; an empty string clears them. Null is rejected.
style_instructionsstringNomaxLength=20000Replace report-writing preferences. Omit to preserve them; an empty string clears them. Null is rejected.
technique_instructionsTechniqueInstructionsNo——
groupsarray<SettingsGroup>NominItems=1; maxItems=100—

HTTPValidationError

NameTypeRequiredConstraintsDescription
detailarray<ValidationError>No——

Pathology

NameTypeRequiredConstraintsDescription
idstringYespattern="^[a-zA-Z0-9_-]+$"; minLength=1; maxLength=64—
when_dictatedstringYesminLength=1; maxLength=20000—
findingsstringYesminLength=1; maxLength=20000—
impressionstringNomaxLength=20000; default=""—

SettingsEntry

NameTypeRequiredConstraintsDescription
idstringYespattern="^[a-zA-Z0-9_-]+$"; minLength=1; maxLength=64—
namestringNomaxLength=80; default=""—
textstringNomaxLength=200000; default=""—
pathologiesarray<Pathology>NomaxItems=100—

SettingsGroup

One organization-only section; every section participates in requests.

NameTypeRequiredConstraintsDescription
idstringYespattern="^[a-zA-Z0-9_-]+$"; minLength=1; maxLength=64—
namestringYesminLength=1; maxLength=80—
standards_textstringNomaxLength=200000; default=""—
transcription_instructionsstringNomaxLength=20000; default=""—
dictation_conventionsstringNomaxLength=20000; default=""—
style_instructionsstringNomaxLength=20000; default=""—
entriesobjectNo——

TechniqueInstructions

NameTypeRequiredConstraintsDescription
mristringNopattern="^[^\\x00]*$"; default=""—
ctstringNopattern="^[^\\x00]*$"; default=""—
xraystringNopattern="^[^\\x00]*$"; default=""—

ValidationError

NameTypeRequiredConstraintsDescription
locarray<string | integer>Yes——
msgstringYes——
typestringYes——
inputobjectNo——
ctxobjectNo——

Select and copy