Skip to main content
POST
/
structures
/
standardize
Standardize RT Structure Names
curl --request POST \
  --url https://newleaf-api-336813653216.us-central1.run.app/external/v1/structures/standardize \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "structures": [
    {
      "structure_name": "<string>",
      "rt_plan_id": "<string>",
      "rt_structure_set_id": "<string>",
      "structure_type": "VOLUME",
      "dose_reference_type": "ORGAN_AT_RISK",
      "target_prescription_dose": 50.4,
      "observation_type": "PTV",
      "structure_volume": 120.5,
      "body_part_examined": "HEAD_NECK"
    }
  ],
  "language": "en",
  "project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'
{
  "standardized_labels": [
    {
      "original_name": "<string>",
      "new_label": "<string>",
      "confidence": 123,
      "rt_plan_id": "<string>",
      "rt_structure_set_id": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

OAuth 2.0 Client Credentials Grant. Requires client_id and client_secret to obtain a Bearer token.

Body

application/json

List of structures to standardize and context.

Request body for standardizing multiple structure names.

structures
object[]
required

List of structures to standardize.

language
string
default:en

The primary language of the original_name fields (e.g., 'en', 'fr').

Example:

"en"

project_id
string<uuid> | null

Optional project ID for context-specific standardization rules.

Response

Successfully standardized structures.

Response body containing the list of standardized labels.

standardized_labels
object[]
required