diff --git a/src/aap_eda/api/views/decision_environment.py b/src/aap_eda/api/views/decision_environment.py index 480b37362..cda9cad39 100644 --- a/src/aap_eda/api/views/decision_environment.py +++ b/src/aap_eda/api/views/decision_environment.py @@ -113,7 +113,14 @@ def retrieve(self, request, pk): @extend_schema( description="Delete a decision environment by id", - responses=status.HTTP_204_NO_CONTENT, + responses={ + status.HTTP_204_NO_CONTENT: OpenApiResponse( + None, description="Delete successful." + ), + status.HTTP_403_FORBIDDEN: OpenApiResponse( + None, description="Decision Environment in use by Activations." + ), + }, parameters=[ OpenApiParameter( name="force",