The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Port POST project transfer from platform to v2 (#52000)
Joshen Lim432869f5254c
diff --git a/apps/studio/data/projects/project-transfer-mutation.ts b/apps/studio/data/projects/project-transfer-mutation.tsindex 4f8ebf62467..c70771337ed 100644--- a/apps/studio/data/projects/project-transfer-mutation.ts+++ b/apps/studio/data/projects/project-transfer-mutation.ts@@ -18,13 +18,14 @@ export async function transferProject({if (!projectRef) throw new Error('projectRef is required')if (!targetOrganizationSlug) throw new Error('targetOrganizationSlug is required')- const payload: { target_organization_slug: string } = {- target_organization_slug: targetOrganizationSlug,- }-- const { data, error } = await post('/platform/projects/{ref}/transfer', {+ const { data, error } = await post('/v2/projects/{ref}/transfers', {params: { path: { ref: projectRef } },- body: payload,+ body: {+ data: {+ type: 'project_transfer_input',+ attributes: { target_organization_slug: targetOrganizationSlug },+ },+ },})if (error) handleError(error)return data