From f7958b93bdb7db4ce86a2dd0dc31b54958cd8ed3 Mon Sep 17 00:00:00 2001 From: Peter Braun Date: Thu, 29 Jan 2026 18:17:31 +0100 Subject: [PATCH] add deprecated fields to x-ai-description for credential post (#16255) --- awx/api/views/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/api/views/__init__.py b/awx/api/views/__init__.py index 084741e699..c7967f3d70 100644 --- a/awx/api/views/__init__.py +++ b/awx/api/views/__init__.py @@ -1454,7 +1454,7 @@ class CredentialList(ListCreateAPIView): @extend_schema_if_available( extensions={ - "x-ai-description": "Create a new credential. The `inputs` field contain type-specific input fields. The required fields depend on related `credential_type`. Use GET /v2/credential_types/{id}/ (tool name: controller.credential_types_retrieve) and inspect `inputs` field for the specific credential type's expected schema." + "x-ai-description": "Create a new credential. The `inputs` field contain type-specific input fields. The required fields depend on related `credential_type`. Use GET /v2/credential_types/{id}/ (tool name: controller.credential_types_retrieve) and inspect `inputs` field for the specific credential type's expected schema. The fields `user` and `team` are deprecated and should not be included in the payload." } ) def post(self, request, *args, **kwargs):