From 2c919173fca2626d38862f22db4e610ac4c4e2c5 Mon Sep 17 00:00:00 2001 From: Ankit Singhal Date: Tue, 15 Apr 2025 00:09:05 -0700 Subject: [PATCH 1/3] Evalaution create is LRO so service returns 201 --- specification/ai/Azure.AI.Projects/evaluations/routes.tsp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/ai/Azure.AI.Projects/evaluations/routes.tsp b/specification/ai/Azure.AI.Projects/evaluations/routes.tsp index f98fd2ca0774..082f1a969678 100644 --- a/specification/ai/Azure.AI.Projects/evaluations/routes.tsp +++ b/specification/ai/Azure.AI.Projects/evaluations/routes.tsp @@ -40,6 +40,6 @@ interface Evaluations { @body evaluation: Evaluation; }, - Evaluation + ResourceCreatedResponse >; } From be2ff4acfe4dba08cbc3c3e39443e1f8e5901c40 Mon Sep 17 00:00:00 2001 From: Ankit Singhal Date: Tue, 15 Apr 2025 11:54:14 -0700 Subject: [PATCH 2/3] Adding updated swagger --- .../preview/2025-05-15-preview/azure-ai-projects-1dp.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/ai/data-plane/Azure.AI.Projects/preview/2025-05-15-preview/azure-ai-projects-1dp.json b/specification/ai/data-plane/Azure.AI.Projects/preview/2025-05-15-preview/azure-ai-projects-1dp.json index 07c1ebad19f7..0021ea66786b 100644 --- a/specification/ai/data-plane/Azure.AI.Projects/preview/2025-05-15-preview/azure-ai-projects-1dp.json +++ b/specification/ai/data-plane/Azure.AI.Projects/preview/2025-05-15-preview/azure-ai-projects-1dp.json @@ -948,8 +948,8 @@ } ], "responses": { - "200": { - "description": "The request has succeeded.", + "201": { + "description": "The request has succeeded and a new resource has been created as a result.", "schema": { "$ref": "#/definitions/Evaluation" } From 0a4342e74d3fff4c7e8eab9bf6011a15bd062732 Mon Sep 17 00:00:00 2001 From: Ankit Singhal Date: Tue, 15 Apr 2025 12:56:24 -0700 Subject: [PATCH 3/3] 201 for read team run --- specification/ai/Azure.AI.Projects/red-teams/routes.tsp | 2 +- .../preview/2025-05-15-preview/azure-ai-projects-1dp.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/specification/ai/Azure.AI.Projects/red-teams/routes.tsp b/specification/ai/Azure.AI.Projects/red-teams/routes.tsp index 5e9531bcf61d..3e2c7258c97c 100644 --- a/specification/ai/Azure.AI.Projects/red-teams/routes.tsp +++ b/specification/ai/Azure.AI.Projects/red-teams/routes.tsp @@ -42,6 +42,6 @@ interface RedTeams { @body RedTeam: RedTeam; }, - RedTeam + ResourceCreatedResponse >; } diff --git a/specification/ai/data-plane/Azure.AI.Projects/preview/2025-05-15-preview/azure-ai-projects-1dp.json b/specification/ai/data-plane/Azure.AI.Projects/preview/2025-05-15-preview/azure-ai-projects-1dp.json index 0021ea66786b..61de4d68e4d6 100644 --- a/specification/ai/data-plane/Azure.AI.Projects/preview/2025-05-15-preview/azure-ai-projects-1dp.json +++ b/specification/ai/data-plane/Azure.AI.Projects/preview/2025-05-15-preview/azure-ai-projects-1dp.json @@ -1417,8 +1417,8 @@ } ], "responses": { - "200": { - "description": "The request has succeeded.", + "201": { + "description": "The request has succeeded and a new resource has been created as a result.", "schema": { "$ref": "#/definitions/RedTeam" }