2020 schema :
2121 $ref : ' #/components/schemas/BranchDetailResponse'
2222 ' 500 ' :
23- description : Failed to update database branch
23+ description : Failed to retrieve database branch
2424 tags : &ref_0
2525 - database branches (beta)
2626 security : &ref_1
@@ -755,6 +755,32 @@ paths:
755755 description : Failed to update project's postgrest config
756756 tags : *ref_19
757757 security : *ref_20
758+ /v1/projects/{ref} :
759+ delete :
760+ operationId : deleteProject
761+ summary : Deletes the given project
762+ parameters :
763+ - name : ref
764+ required : true
765+ in : path
766+ description : Project ref
767+ schema :
768+ minLength : 20
769+ maxLength : 20
770+ type : string
771+ responses :
772+ ' 200 ' :
773+ description : ' '
774+ content :
775+ application/json :
776+ schema :
777+ $ref : ' #/components/schemas/ProjectRefResponse'
778+ ' 403 ' :
779+ description : ' '
780+ tags :
781+ - projects
782+ security :
783+ - bearer : []
758784 /v1/projects/{ref}/secrets :
759785 get :
760786 operationId : getSecrets
@@ -785,8 +811,6 @@ paths:
785811 tags : &ref_21
786812 - secrets
787813 security : &ref_22
788- - apiKeyHeader : []
789- apiKeyParam : []
790814 - bearer : []
791815 post :
792816 operationId : createSecrets
@@ -945,8 +969,6 @@ paths:
945969 tags :
946970 - projects
947971 security :
948- - apiKeyHeader : []
949- apiKeyParam : []
950972 - bearer : []
951973 /v1/projects/{ref}/vanity-subdomain :
952974 get :
@@ -1189,6 +1211,53 @@ paths:
11891211 description : Failed to disable project's readonly mode
11901212 tags : *ref_29
11911213 security : *ref_30
1214+ /v1/projects/{ref}/health :
1215+ get :
1216+ operationId : checkServiceHealth
1217+ summary : Gets project's service health status
1218+ parameters :
1219+ - name : ref
1220+ required : true
1221+ in : path
1222+ description : Project ref
1223+ schema :
1224+ minLength : 20
1225+ maxLength : 20
1226+ type : string
1227+ - name : timeout_ms
1228+ required : false
1229+ in : query
1230+ schema :
1231+ minimum : 0
1232+ maximum : 10000
1233+ type : integer
1234+ - name : services
1235+ required : true
1236+ in : query
1237+ schema :
1238+ type : array
1239+ items :
1240+ type : string
1241+ enum :
1242+ - auth
1243+ - realtime
1244+ - rest
1245+ - storage
1246+ responses :
1247+ ' 200 ' :
1248+ description : ' '
1249+ content :
1250+ application/json :
1251+ schema :
1252+ type : array
1253+ items :
1254+ $ref : ' #/components/schemas/ServiceHealthResponse'
1255+ ' 500 ' :
1256+ description : Failed to retrieve project's service health status
1257+ tags :
1258+ - services
1259+ security :
1260+ - bearer : []
11921261 /v1/projects/{ref}/config/database/postgres :
11931262 get :
11941263 operationId : getConfig
@@ -1215,7 +1284,6 @@ paths:
12151284 - projects config
12161285 security : &ref_32
12171286 - bearer : []
1218- - bearer : []
12191287 put :
12201288 operationId : updateConfig
12211289 summary : Updates project's Postgres config
@@ -1452,8 +1520,6 @@ paths:
14521520 tags : &ref_36
14531521 - functions
14541522 security : &ref_37
1455- - apiKeyHeader : []
1456- apiKeyParam : []
14571523 - bearer : []
14581524 get :
14591525 operationId : getFunctions
@@ -1518,8 +1584,6 @@ paths:
15181584 tags : &ref_39
15191585 - functions
15201586 security : &ref_40
1521- - apiKeyHeader : []
1522- apiKeyParam : []
15231587 - bearer : []
15241588 patch :
15251589 operationId : updateFunction
@@ -1813,6 +1877,32 @@ paths:
18131877 does not exist
18141878 tags : *ref_41
18151879 security : *ref_42
1880+ /v1/projects/{ref}/database/backups/restore-pitr :
1881+ post :
1882+ operationId : v1RestorePitr
1883+ summary : Restores a PITR backup for a database
1884+ parameters :
1885+ - name : ref
1886+ required : true
1887+ in : path
1888+ description : Project ref
1889+ schema :
1890+ minLength : 20
1891+ maxLength : 20
1892+ type : string
1893+ requestBody :
1894+ required : true
1895+ content :
1896+ application/json :
1897+ schema :
1898+ $ref : ' #/components/schemas/V1RestorePitrBody'
1899+ responses :
1900+ ' 201 ' :
1901+ description : ' '
1902+ tags :
1903+ - backups (beta)
1904+ security :
1905+ - bearer : []
18161906 /v1/organizations/{slug}/members :
18171907 get :
18181908 operationId : v1ListOrganizationMembers
@@ -2005,6 +2095,7 @@ components:
20052095 example : us-east-1
20062096 kps_enabled :
20072097 type : boolean
2098+ deprecated : true
20082099 required :
20092100 - db_pass
20102101 - name
@@ -2342,6 +2433,19 @@ components:
23422433 - max_rows
23432434 - db_schema
23442435 - db_extra_search_path
2436+ ProjectRefResponse :
2437+ type : object
2438+ properties :
2439+ id :
2440+ type : number
2441+ ref :
2442+ type : string
2443+ name :
2444+ type : string
2445+ required :
2446+ - id
2447+ - ref
2448+ - name
23452449 SecretResponse :
23462450 type : object
23472451 properties :
@@ -2359,6 +2463,8 @@ components:
23592463 type : string
23602464 maxLength : 256
23612465 pattern : /^(?!SUPABASE_).*/
2466+ description : Secret name must not start with the SUPABASE_ prefix.
2467+ example : string
23622468 value :
23632469 type : string
23642470 maxLength : 24576
@@ -2536,6 +2642,53 @@ components:
25362642 - enabled
25372643 - override_enabled
25382644 - override_active_until
2645+ AuthHealthResponse :
2646+ type : object
2647+ properties :
2648+ name :
2649+ type : string
2650+ version :
2651+ type : string
2652+ description :
2653+ type : string
2654+ required :
2655+ - name
2656+ - version
2657+ - description
2658+ RealtimeHealthResponse :
2659+ type : object
2660+ properties :
2661+ healthy :
2662+ type : boolean
2663+ db_connected :
2664+ type : boolean
2665+ connected_cluster :
2666+ type : number
2667+ required :
2668+ - healthy
2669+ - db_connected
2670+ - connected_cluster
2671+ ServiceHealthResponse :
2672+ type : object
2673+ properties :
2674+ info :
2675+ oneOf :
2676+ - $ref : ' #/components/schemas/AuthHealthResponse'
2677+ - $ref : ' #/components/schemas/RealtimeHealthResponse'
2678+ name :
2679+ enum :
2680+ - auth
2681+ - realtime
2682+ - rest
2683+ - storage
2684+ type : string
2685+ healthy :
2686+ type : boolean
2687+ error :
2688+ type : string
2689+ required :
2690+ - name
2691+ - healthy
25392692 PostgresConfigResponse :
25402693 type : object
25412694 properties :
@@ -2954,6 +3107,13 @@ components:
29543107 type : string
29553108 required :
29563109 - id
3110+ V1RestorePitrBody :
3111+ type : object
3112+ properties :
3113+ recovery_time_target_unix :
3114+ type : number
3115+ required :
3116+ - recovery_time_target_unix
29573117 V1OrganizationMemberResponse :
29583118 type : object
29593119 properties :
0 commit comments