Update a custom FHIR profile
/fhir/profiles/{id}Replaces an existing custom profile with a new StructureDefinition. The
id path parameter is authoritative: if the StructureDefinition includes
an id it must match the path parameter, and if it omits one the path
parameter is used. The FHIR resource type of the profile cannot change.
Code system configuration is
re-derived from the new StructureDefinition. When implementation_guide is
omitted, the profile keeps its existing implementation guide. The instance
stores a single version per canonical URL, so this replaces it in place.
Path parameters
idstringrequiredThe lowercase StructureDefinition id of the custom profile.
Body parameters
structure_definitionobjectrequiredA FHIR StructureDefinition as a JSON object. Must include url, type, and a snapshot with elements. All metadata (version, resource type, id) is derived from the StructureDefinition itself. The lowercase id becomes the profile's lookup key; when omitted, it is derived from the final path segment of the canonical url.
implementation_guidestringoptionalImplementation Guide name to group this profile under. On create, defaults to "custom" if omitted; on update, omitting it preserves the profile's current guide. Cannot be "us_core" (reserved). Use this to organize custom profiles into named IGs that can be referenced when calling create/multi or document/multi endpoints.
Profile successfully updated
Response fields
idstringoptionalThe lowercase StructureDefinition id, used as the profile's lookup key.
sourcestringoptionalThe profile's origin. Listings currently return only custom (uploaded) profiles, so this is always "custom" today; built-in (US Core / R4 base) profiles would be surfaced via an opt-in parameter in a future release, not by changing the default behavior.
custombuiltinresource_typestringoptionalThe FHIR resource type from the StructureDefinition.
urlstringoptionalThe canonical URL from the StructureDefinition.
versionstringoptionalThe version from the StructureDefinition.version field.
fhir_versionstringoptionalThe base FHIR version the StructureDefinition targets.
implementation_guidestringoptionalThe implementation guide the profile belongs to.
created_atstring (date-time)optionalupdated_atstring (date-time)optional