diff --git a/awx/ui/client/src/rest/restServices.factory.js b/awx/ui/client/src/rest/restServices.factory.js index e562b68b26..b65a9a1c96 100644 --- a/awx/ui/client/src/rest/restServices.factory.js +++ b/awx/ui/client/src/rest/restServices.factory.js @@ -20,7 +20,7 @@ * * ``` * /api/v2/inventories/9/ - * /api/v2/credentials/?name=SSH Key&kind=ssh + * /api/v2/credentials/?name=SSH Key&credential_type__namespace=ssh * ``` * * When constructing the URL be sure to use the GetBasePath() method found in js/shared/Utilities.js. GetBasePath uses the response objects from /api and diff --git a/awx/ui/client/src/shared/directives.js b/awx/ui/client/src/shared/directives.js index 9f46002506..6cbd603e4a 100644 --- a/awx/ui/client/src/shared/directives.js +++ b/awx/ui/client/src/shared/directives.js @@ -654,13 +654,13 @@ function(SettingsUtils, i18n, $rootScope) { else { switch(base) { case 'credential': - query += '&kind=ssh&role_level=use_role'; + query += '&credential_type__namespace=ssh&role_level=use_role'; break; case 'scm_credential': - query += '&kind=scm&role_level=use_role'; + query += '&redential_type__namespace=scm&role_level=use_role'; break; case 'network_credential': - query += '&kind=net&role_level=use_role'; + query += '&redential_type__namespace=net&role_level=use_role'; break; case 'cloud_credential': query += '&cloud=true&role_level=use_role';