Restore a settings version

Markdown
POST /v1/client/settings/restore

Restore a saved version by sending revision and expected_revision from your latest settings read. Restore creates a new version and preserves the existing history. A stale expected_revision returns 409. Changes apply to future reports; reports already running keep their settings snapshot.

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
revisionintegerYesminimum=0.0; maximum=9.223372036854776e+18—
expected_revisionintegerYesminimum=0.0; maximum=9.223372036854776e+18—

Request examples

{
  "expected_revision": 3,
  "revision": 1
}

Example

BASE_URL=https://radiologydictation.com

curl --request POST "$BASE_URL/v1/client/settings/restore" \
  --header "Authorization: Bearer $API_KEY" \
  --header "Content-Type: application/json" \
  --data '{"expected_revision": 3, "revision": 1}'

Responses

StatusDescriptionType
200Successful ResponseClientSettings · application/json
401Invalid or missing API keyobject · application/json
429Too many attempts. Please try again later.object · application/json
503Service is unavailable. Please try again.object · application/json
400Settings must contain valid text.object · application/json
404Settings version not found.—
409Your changes were not saved. Reload settings before trying again.—
413Request is too large.object · application/json
415JSON request required.object · application/json
422Validation ErrorHTTPValidationError · application/json

Response headers · 429

HeaderTypeDescription
Retry-Afterstring—

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—

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——

SettingsRestore

NameTypeRequiredConstraintsDescription
revisionintegerYesminimum=0.0; maximum=9.223372036854776e+18—
expected_revisionintegerYesminimum=0.0; maximum=9.223372036854776e+18—

TechniqueInstructions

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

ValidationError

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

Select and copy