From 350436c0cc732564e81c7e3f8b5bfc866d2ce97e Mon Sep 17 00:00:00 2001 From: Shubham Naik Date: Tue, 6 Jan 2026 12:10:09 -0800 Subject: [PATCH] Shub/let 6820 add the migrator between legacy project to default project [LET-6820] (#8300) * chore * chore; udpate secrets * chore: remove sleeptime templates * chore: remove sleeptime templates * Update apps/web/src/lib/client/components/ADEPage/ADEHeader/ADEHeader.tsx Co-authored-by: datadog-official[bot] <214633350+datadog-official[bot]@users.noreply.github.com> * Update apps/web/src/lib/client/components/ADEPage/ADEHeader/LegacyMigrationModal/LegacyMigrationModal.tsx Co-authored-by: datadog-official[bot] <214633350+datadog-official[bot]@users.noreply.github.com> --------- Co-authored-by: datadog-official[bot] <214633350+datadog-official[bot]@users.noreply.github.com> --- fern/openapi.json | 83 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) diff --git a/fern/openapi.json b/fern/openapi.json index 361b2ac3..d9ccada6 100644 --- a/fern/openapi.json +++ b/fern/openapi.json @@ -19689,6 +19689,89 @@ } } }, + "/v1/legacy-templates/{templateId}/migrates": { + "post": { + "description": "Migrates a template from a legacy project to the default project. Only works if the template is currently in a legacy project.", + "summary": "Migrate template from legacy project (Cloud-only)", + "tags": ["templates"], + "parameters": [ + { + "name": "templateId", + "in": "path", + "required": true, + "schema": { + "type": "string" + }, + "description": "The template ID" + } + ], + "operationId": "templates.legacyMigration", + "requestBody": { + "description": "Body", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {} + } + } + } + }, + "responses": { + "200": { + "description": "200", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "success": { + "type": "boolean" + }, + "message": { + "type": "string" + } + }, + "required": ["success"] + } + } + } + }, + "400": { + "description": "400", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": ["message"] + } + } + } + }, + "404": { + "description": "404", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "required": ["message"] + } + } + } + } + } + } + }, "/v1/client-side-access-tokens": { "post": { "description": "Create a new client side access token with the specified configuration.",