CatalogedApiVersion represents a version of an API consumable in Salesforce through API Catalog. It stores version-level catalog metadata and associates that version with a CatalogedApi, which represents the API's overall catalog entry.
The component's identity, display name, version identifier, and external-source identifier serve different purposes. In particular, version identifies the API version information; it is not a Salesforce Metadata API compatibility setting.
Key Elements
| Element | What the Element Controls |
|---|---|
fullName |
Identifies the metadata component. Inherited from the base Metadata type; distinct from the displayed API name and external-source identity. |
catalogedApi |
Required string. References the CatalogedApi to which this version belongs. |
label |
Required string. The API name displayed in API Catalog, not the component's metadata identity. |
version |
Required string. Identifies the API version information. Do not assume that it is a semantic version number, such as a major-minor-patch value. |
externalSourceIdentifier |
Optional string. Identifies the API in the external source from which it was imported. |
description |
Optional string. Records the description defined when the API was cataloged. |
Behavior and Constraints
catalogedApi establishes which cataloged API owns the version. That association alone does not establish whether the API is actively used.
Keep the identity fields separate when comparing entries or tracing an imported API:
-
fullNameidentifies the Salesforce metadata component. -
labelsupplies the API name shown in API Catalog. -
versionidentifies the API version information. -
externalSourceIdentifier, when present, records the API's identity in its external source.
Do not interpret the version string as a Metadata API compatibility level or assume that it follows semantic-version numbering. Its purpose is identification.
Deployment and Retrieval
CatalogedApiVersion components are stored in the catalogedApiVersions folder and use the .catalogedApiVersion file suffix.
The required component elements are catalogedApi, label, and version. The catalogedApi reference is the outgoing dependency that identifies the associated API catalog entry. The displayed label and the optional externalSourceIdentifier serve different purposes from that reference and from the component's fullName.
Relationships
The version belongs to an overall API catalog entry through catalogedApi. This is an element reference, not a name-based association or evidence of active API usage.
References
-
CatalogedApi:catalogedApi.
Common Questions
What is the difference between CatalogedApiVersion and CatalogedApi?
CatalogedApi represents the overall API catalog entry. CatalogedApiVersion holds version-level catalog metadata and points to that entry through its required catalogedApi element.
Where are CatalogedApiVersion metadata files stored?
They are stored in the catalogedApiVersions folder with the .catalogedApiVersion suffix.
Does the version field set the Salesforce Metadata API version?
No. version is a string identifying the API version information. It is not a Metadata API compatibility setting, and it should not be assumed to follow semantic-version numbering.
Is externalSourceIdentifier the same as fullName?
No. externalSourceIdentifier identifies the API in the external source from which it was imported. fullName identifies the Salesforce metadata component, while label supplies its displayed API name.