Add a retained version to a custom FHIR profile
/fhir/profiles/{id}/versionsAdds an immutable StructureDefinition version to a custom profile. If
the profile does not exist, it is created from the submitted version.
The StructureDefinition must include a non-empty version; its
canonical URL and resource type must match the profile when one already
exists. If it includes an id, that id must match the path parameter;
if it omits id, the path parameter is used. Profiles created through
this endpoint are grouped under custom. Posting the profile's current
StructureDefinition unchanged retains it as a version.
Version strings may contain letters, numbers, and the punctuation
characters ., _, ~, +, and -; they cannot be exactly . or
... Each profile can retain up to 250 versions; delete old
versions before adding more.
Path parameters
idstringrequiredThe lowercase StructureDefinition id of the custom profile.
Profile version successfully created
Response fields
idstringrequiredThe lowercase StructureDefinition id, used as the profile's lookup key.
sourcestringrequiredThe profile's origin. Profile management responses currently return custom (uploaded) profiles, so this is always "custom" today.
custombuiltinresource_typestringrequiredThe FHIR resource type from the StructureDefinition.
urlstringrequiredThe canonical URL from the StructureDefinition.
versionstringrequiredThe version from the StructureDefinition.version field.
statusstringoptionalThe publication status from StructureDefinition.status. Expected FHIR values include draft, active, retired, and unknown; the server preserves authored strings.
datestringoptionalThe authored publication date from StructureDefinition.date, when present. This is a FHIR dateTime string and may be less precise than a full timestamp.
canonicalstringrequiredThe canonical profile reference, including the version pin when present.
fhir_versionstringrequiredThe base FHIR version the StructureDefinition targets.
implementation_guidestringrequiredThe implementation guide the profile belongs to.
created_atstring (date-time)requiredupdated_atstring (date-time)requiredLast update timestamp for the profile's current StructureDefinition. For retained versions, this equals created_at.