Introduction In JFrog Artifactory, repository layouts dictate the structure and conventions for storing artifacts within a repository. They serve as a guide for Artifactory to "interpret" the artifact's path and extract essential information such as its organization, module name, and version. Artifactory comes equipped with several default layouts that require no extra configuration, as detailed in the documentation. Additionally, users have the option to create custom layouts, which allow for precise specifications of the path patterns for artifact storage and identification within a repository. How to create a Custom Layout in JFrog Artifactory To create a new repository layout, navigate to Administration -> Artifactory Settings -> Repository Layouts. Layout Name: Provide a name to your custom repository layout. Artifact Path Pattern: Configure an Artifact Path Pattern for your layout, which defines the expected hierarchical structure for artifact storage. For available module fields to set an artifact path pattern, refer to this documentation. File and Folder Integration Revision: These fields should include regular expressions that accurately match and describe the formats of the integration revision (excluding the base revision) as they appear in the artifact's file name and path structure. After completing the configuration of your layout, you can test it against an artifact path to see how the system constructs module information from the path using the layout definitions. Below is a simple example of a custom layout named frog-example-default for a generic repository. Layout Name: frog-example-default Artifact Path Pattern: [orgPath]/[module]/[baseRev]/[module]-[baseRev](-[classifier]).[ext] Folder Integration Revision RegExp: .* File Integration Revision RegExp: .* Test Artifact Path Resolution: frogtest/froggypackage/1.0.5/froggypackage-1.0.5-darwin.tar.gz Once the layout is configured successfully, you can apply this layout to a generic repository in the repository settings. After assigning the layout to the repository, you can begin deploying and resolving packages using this custom layout as described below.Conclusion If you are looking to retrieve the latest artifact version from a specified destination using the Retrieve Latest Artifact REST API, you need to specify [INTEGRATION] and [RELEASE] in the version of the requested path (substituting [folderItegRev] and [fileItegRev]). This will allow you to obtain the latest integration version or the latest release version of the artifact based on alphabetical sorting.