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
The lowercase StructureDefinition id of the custom profile.
Profile version successfully created
Response fields
The lowercase StructureDefinition id, used as the profile's lookup key.
The profile's origin. Profile management responses return custom (uploaded) profiles, so this value is always "custom".
custombuiltinThe FHIR resource type from the StructureDefinition.
The canonical URL from the StructureDefinition.
The version from the StructureDefinition.version field.
The publication status from StructureDefinition.status. Expected FHIR values include draft, active, retired, and unknown; the server preserves authored strings.
The authored publication date from StructureDefinition.date, when present. This is a FHIR dateTime string and may be less precise than a full timestamp.
The canonical profile reference, including the version pin when present.
The base FHIR version the StructureDefinition targets.
The implementation guide the profile belongs to.
Last update timestamp for the profile's current StructureDefinition. For retained versions, this equals created_at.