From 4e9cc58073015de1b47b3a504827493fe82eb066 Mon Sep 17 00:00:00 2001 From: Samir Jha Date: Wed, 18 Dec 2024 17:55:43 +0000 Subject: [PATCH] Fixes #38114 - Document path-id param for environment create --- app/controllers/katello/api/v2/environments_controller.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/controllers/katello/api/v2/environments_controller.rb b/app/controllers/katello/api/v2/environments_controller.rb index 764a4aa5810..a0e70be7067 100644 --- a/app/controllers/katello/api/v2/environments_controller.rb +++ b/app/controllers/katello/api/v2/environments_controller.rb @@ -84,6 +84,10 @@ def show ID of an environment that is prior to the new environment in the chain. It has to be either the ID of Library or the ID of an environment at the end of a chain. DESC + param :path_id, Integer, :desc => <<-DESC + If you are adding an environment to an existing path after Library, pass the ID of the environment that is the current successor of Library in the path. + It has to be the id of the old environment following library in this path. + DESC def create create_params = environment_params create_params[:label] = labelize_params(create_params)