Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

api-docs: split up params into path, header and body

Inian029ce4ac84be
diff --git a/apps/reference/_api/usage.mdx b/apps/reference/_api/usage.mdx
index c8c8e4d8fa6..dff1b912aa3 100644
--- a/apps/reference/_api/usage.mdx
+++ b/apps/reference/_api/usage.mdx
@@ -5,17 +5,25 @@ title: Usage
toc_max_heading_level: 3
---
-import Tabs from '@theme/Tabs'
-import TabItem from '@theme/TabItem'
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
+
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
+
+
+
## Organizations {#organizations}
Organization endpoints
+
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
### List all organizations {#list-all-organizations}
@@ -26,8 +34,15 @@ GET https://api.supabase.com/v1/organizations
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
+
+
+
+
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
+
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
#### Responses
@@ -36,8 +51,11 @@ GET https://api.supabase.com/v1/organizations
<TabItem value="200">
+
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
+
```json
{
"schema": {
@@ -52,12 +70,16 @@ GET https://api.supabase.com/v1/organizations
"type": "string"
}
},
- "required": ["id", "name"]
+ "required": [
+ "id",
+ "name"
+ ]
}
}
}
```
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
</TabItem>
@@ -68,6 +90,8 @@ Unexpected error listing organizations
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
+
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
</TabItem>
@@ -76,6 +100,7 @@ Unexpected error listing organizations
<br />
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
### Create an organization {#create-an-organization}
@@ -86,9 +111,15 @@ POST https://api.supabase.com/v1/organizations
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
+
+
+
+
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-#### Body
+
+#### Body Parameters
```json
{
@@ -99,11 +130,14 @@ POST https://api.supabase.com/v1/organizations
"type": "string"
}
},
- "required": ["name"]
+ "required": [
+ "name"
+ ]
}
}
```
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
#### Responses
@@ -112,8 +146,11 @@ POST https://api.supabase.com/v1/organizations
<TabItem value="201">
+
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
+
```json
{
"schema": {
@@ -126,11 +163,15 @@ POST https://api.supabase.com/v1/organizations
"type": "string"
}
},
- "required": ["id", "name"]
+ "required": [
+ "id",
+ "name"
+ ]
}
}
```
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
</TabItem>
@@ -141,6 +182,8 @@ Unexpected error creating an organization
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
+
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
</TabItem>
@@ -149,10 +192,14 @@ Unexpected error creating an organization
<br />
+
+
## Projects {#projects}
Project endpoints
+
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
### List all projects {#list-all-projects}
@@ -163,8 +210,15 @@ GET https://api.supabase.com/v1/projects
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
+
+
+
+
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
+
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
#### Responses
@@ -173,8 +227,11 @@ GET https://api.supabase.com/v1/projects
<TabItem value="200">
+
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
+
```json
{
"schema": {
@@ -198,12 +255,19 @@ GET https://api.supabase.com/v1/projects
"type": "string"
}
},
- "required": ["id", "organization_id", "name", "region", "created_at"]
+ "required": [
+ "id",
+ "organization_id",
+ "name",
+ "region",
+ "created_at"
+ ]
}
}
}
```
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
</TabItem>
@@ -212,6 +276,7 @@ GET https://api.supabase.com/v1/projects
<br />
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
### Create a project {#create-a-project}
@@ -222,9 +287,15 @@ POST https://api.supabase.com/v1/projects
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
+
+
+
+
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-#### Body
+
+#### Body Parameters
```json
{
@@ -242,7 +313,10 @@ POST https://api.supabase.com/v1/projects
},
"plan": {
"type": "string",
- "enum": ["free", "pro"]
+ "enum": [
+ "free",
+ "pro"
+ ]
},
"region": {
"type": "string",
@@ -262,11 +336,18 @@ POST https://api.supabase.com/v1/projects
]
}
},
- "required": ["db_pass", "name", "organization_id", "plan", "region"]
+ "required": [
+ "db_pass",
+ "name",
+ "organization_id",
+ "plan",
+ "region"
+ ]
}
}
```
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
#### Responses
@@ -275,8 +356,11 @@ POST https://api.supabase.com/v1/projects
<TabItem value="201">
+
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
+
```json
{
"schema": {
@@ -298,11 +382,18 @@ POST https://api.supabase.com/v1/projects
"type": "string"
}
},
- "required": ["id", "organization_id", "name", "region", "created_at"]
+ "required": [
+ "id",
+ "organization_id",
+ "name",
+ "region",
+ "created_at"
+ ]
}
}
```
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
</TabItem>
@@ -311,6 +402,7 @@ POST https://api.supabase.com/v1/projects
<br />
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
### List all functions {#list-all-functions}
@@ -321,23 +413,38 @@ GET https://api.supabase.com/v1/projects/{ref}/functions
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-#### Parameters
+
+#### Path Parameters
<ul className="method-list-group">
<li className="method-list-item">
- <h4 className="method-list-item-label">
- <span className="method-list-item-label-name">ref</span>
- <span className="method-list-item-label-badge">required</span>
- <span className="method-list-item-validation"></span>
- </h4>
- <div class="method-list-item-description">Project ref</div>
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ ref
+ </span>
+ <span className="method-list-item-label-badge">
+ required
+ </span>
+ <span className="method-list-item-validation">
+
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+ Project ref
+ </div>
</li>
</ul>
+
+
+
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
+
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
#### Responses
@@ -346,8 +453,11 @@ GET https://api.supabase.com/v1/projects/{ref}/functions
<TabItem value="200">
+
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
+
```json
{
"schema": {
@@ -365,7 +475,11 @@ GET https://api.supabase.com/v1/projects/{ref}/functions
"type": "string"
},
"status": {
- "enum": ["ACTIVE", "REMOVED", "THROTTLED"],
+ "enum": [
+ "ACTIVE",
+ "REMOVED",
+ "THROTTLED"
+ ],
"type": "string"
},
"version": {
@@ -395,6 +509,7 @@ GET https://api.supabase.com/v1/projects/{ref}/functions
}
```
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
</TabItem>
@@ -405,6 +520,8 @@ Failed to retrieve project's functions
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
+
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
</TabItem>
@@ -413,6 +530,7 @@ Failed to retrieve project's functions
<br />
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
### Create a function {#create-a-function}
@@ -423,24 +541,38 @@ POST https://api.supabase.com/v1/projects/{ref}/functions
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-#### Parameters
+
+#### Path Parameters
<ul className="method-list-group">
<li className="method-list-item">
- <h4 className="method-list-item-label">
- <span className="method-list-item-label-name">ref</span>
- <span className="method-list-item-label-badge">required</span>
- <span className="method-list-item-validation"></span>
- </h4>
- <div class="method-list-item-description">Project ref</div>
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ ref
+ </span>
+ <span className="method-list-item-label-badge">
+ required
+ </span>
+ <span className="method-list-item-validation">
+
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+ Project ref
+ </div>
</li>
</ul>
+
+
+
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-#### Body
+
+#### Body Parameters
```json
{
@@ -461,11 +593,16 @@ POST https://api.supabase.com/v1/projects/{ref}/functions
"type": "boolean"
}
},
- "required": ["slug", "name", "body"]
+ "required": [
+ "slug",
+ "name",
+ "body"
+ ]
}
}
```
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
#### Responses
@@ -474,8 +611,11 @@ POST https://api.supabase.com/v1/projects/{ref}/functions
<TabItem value="201">
+
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
+
```json
{
"schema": {
@@ -491,7 +631,11 @@ POST https://api.supabase.com/v1/projects/{ref}/functions
"type": "string"
},
"status": {
- "enum": ["ACTIVE", "REMOVED", "THROTTLED"],
+ "enum": [
+ "ACTIVE",
+ "REMOVED",
+ "THROTTLED"
+ ],
"type": "string"
},
"version": {
@@ -520,6 +664,7 @@ POST https://api.supabase.com/v1/projects/{ref}/functions
}
```
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
</TabItem>
@@ -530,6 +675,8 @@ Failed to create project's function
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
+
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
</TabItem>
@@ -538,6 +685,7 @@ Failed to create project's function
<br />
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
### Retrieve a function {#retrieve-a-function}
@@ -548,41 +696,55 @@ GET https://api.supabase.com/v1/projects/{ref}/functions/{function_slug}
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-#### Parameters
-<ul className="method-list-group">
+#### Path Parameters
-<li className="method-list-item">
- <h4 className="method-list-item-label">
- <span className="method-list-item-label-name">include_body</span>
- <span className="method-list-item-label-badge">optional</span>
- <span className="method-list-item-validation"></span>
- </h4>
- <div class="method-list-item-description"></div>
-</li>
+<ul className="method-list-group">
<li className="method-list-item">
- <h4 className="method-list-item-label">
- <span className="method-list-item-label-name">ref</span>
- <span className="method-list-item-label-badge">required</span>
- <span className="method-list-item-validation"></span>
- </h4>
- <div class="method-list-item-description">Project ref</div>
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ ref
+ </span>
+ <span className="method-list-item-label-badge">
+ required
+ </span>
+ <span className="method-list-item-validation">
+
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+ Project ref
+ </div>
</li>
<li className="method-list-item">
- <h4 className="method-list-item-label">
- <span className="method-list-item-label-name">function_slug</span>
- <span className="method-list-item-label-badge">required</span>
- <span className="method-list-item-validation"></span>
- </h4>
- <div class="method-list-item-description">Function slug</div>
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ function_slug
+ </span>
+ <span className="method-list-item-label-badge">
+ required
+ </span>
+ <span className="method-list-item-validation">
+
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+ Function slug
+ </div>
</li>
</ul>
+
+
+
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
+
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
#### Responses
@@ -591,8 +753,11 @@ GET https://api.supabase.com/v1/projects/{ref}/functions/{function_slug}
<TabItem value="200">
+
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
+
```json
{
"schema": {
@@ -608,7 +773,11 @@ GET https://api.supabase.com/v1/projects/{ref}/functions/{function_slug}
"type": "string"
},
"status": {
- "enum": ["ACTIVE", "REMOVED", "THROTTLED"],
+ "enum": [
+ "ACTIVE",
+ "REMOVED",
+ "THROTTLED"
+ ],
"type": "string"
},
"version": {
@@ -640,6 +809,7 @@ GET https://api.supabase.com/v1/projects/{ref}/functions/{function_slug}
}
```
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
</TabItem>
@@ -650,6 +820,8 @@ Failed to retrieve function with given slug
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
+
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
</TabItem>
@@ -658,6 +830,7 @@ Failed to retrieve function with given slug
<br />
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
### Update a function {#update-a-function}
@@ -668,33 +841,55 @@ PATCH https://api.supabase.com/v1/projects/{ref}/functions/{function_slug}
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-#### Parameters
+
+#### Path Parameters
<ul className="method-list-group">
<li className="method-list-item">
- <h4 className="method-list-item-label">
- <span className="method-list-item-label-name">ref</span>
- <span className="method-list-item-label-badge">required</span>
- <span className="method-list-item-validation"></span>
- </h4>
- <div class="method-list-item-description">Project ref</div>
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ ref
+ </span>
+ <span className="method-list-item-label-badge">
+ required
+ </span>
+ <span className="method-list-item-validation">
+
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+ Project ref
+ </div>
</li>
<li className="method-list-item">
- <h4 className="method-list-item-label">
- <span className="method-list-item-label-name">function_slug</span>
- <span className="method-list-item-label-badge">required</span>
- <span className="method-list-item-validation"></span>
- </h4>
- <div class="method-list-item-description">Function slug</div>
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ function_slug
+ </span>
+ <span className="method-list-item-label-badge">
+ required
+ </span>
+ <span className="method-list-item-validation">
+
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+ Function slug
+ </div>
</li>
</ul>
+
+
+
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-#### Body
+
+#### Body Parameters
```json
{
@@ -715,6 +910,7 @@ PATCH https://api.supabase.com/v1/projects/{ref}/functions/{function_slug}
}
```
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
#### Responses
@@ -723,8 +919,11 @@ PATCH https://api.supabase.com/v1/projects/{ref}/functions/{function_slug}
<TabItem value="200">
+
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
+
```json
{
"schema": {
@@ -740,7 +939,11 @@ PATCH https://api.supabase.com/v1/projects/{ref}/functions/{function_slug}
"type": "string"
},
"status": {
- "enum": ["ACTIVE", "REMOVED", "THROTTLED"],
+ "enum": [
+ "ACTIVE",
+ "REMOVED",
+ "THROTTLED"
+ ],
"type": "string"
},
"version": {
@@ -769,6 +972,7 @@ PATCH https://api.supabase.com/v1/projects/{ref}/functions/{function_slug}
}
```
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
</TabItem>
@@ -779,6 +983,8 @@ Failed to update function with given slug
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
+
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
</TabItem>
@@ -787,6 +993,7 @@ Failed to update function with given slug
<br />
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
### Delete a function {#delete-a-function}
@@ -797,32 +1004,55 @@ DELETE https://api.supabase.com/v1/projects/{ref}/functions/{function_slug}
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-#### Parameters
+
+#### Path Parameters
<ul className="method-list-group">
<li className="method-list-item">
- <h4 className="method-list-item-label">
- <span className="method-list-item-label-name">ref</span>
- <span className="method-list-item-label-badge">required</span>
- <span className="method-list-item-validation"></span>
- </h4>
- <div class="method-list-item-description">Project ref</div>
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ ref
+ </span>
+ <span className="method-list-item-label-badge">
+ required
+ </span>
+ <span className="method-list-item-validation">
+
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+ Project ref
+ </div>
</li>
<li className="method-list-item">
- <h4 className="method-list-item-label">
- <span className="method-list-item-label-name">function_slug</span>
- <span className="method-list-item-label-badge">required</span>
- <span className="method-list-item-validation"></span>
- </h4>
- <div class="method-list-item-description">Function slug</div>
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ function_slug
+ </span>
+ <span className="method-list-item-label-badge">
+ required
+ </span>
+ <span className="method-list-item-validation">
+
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+ Function slug
+ </div>
</li>
</ul>
+
+
+
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
+
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
#### Responses
@@ -831,8 +1061,12 @@ DELETE https://api.supabase.com/v1/projects/{ref}/functions/{function_slug}
<TabItem value="200">
+
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
+
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
</TabItem>
@@ -843,6 +1077,8 @@ Failed to delete function with given slug
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
+
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
</TabItem>
@@ -851,6 +1087,7 @@ Failed to delete function with given slug
<br />
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
### List all secrets {#list-all-secrets}
@@ -861,23 +1098,38 @@ GET https://api.supabase.com/v1/projects/{ref}/secrets
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-#### Parameters
+
+#### Path Parameters
<ul className="method-list-group">
<li className="method-list-item">
- <h4 className="method-list-item-label">
- <span className="method-list-item-label-name">ref</span>
- <span className="method-list-item-label-badge">required</span>
- <span className="method-list-item-validation"></span>
- </h4>
- <div class="method-list-item-description">Project ref</div>
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ ref
+ </span>
+ <span className="method-list-item-label-badge">
+ required
+ </span>
+ <span className="method-list-item-validation">
+
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+ Project ref
+ </div>
</li>
</ul>
+
+
+
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
+
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
#### Responses
@@ -886,8 +1138,11 @@ GET https://api.supabase.com/v1/projects/{ref}/secrets
<TabItem value="200">
+
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
+
```json
{
"schema": {
@@ -902,12 +1157,16 @@ GET https://api.supabase.com/v1/projects/{ref}/secrets
"type": "string"
}
},
- "required": ["name", "value"]
+ "required": [
+ "name",
+ "value"
+ ]
}
}
}
```
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
</TabItem>
@@ -918,6 +1177,8 @@ Failed to retrieve project's secrets
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
+
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
</TabItem>
@@ -926,6 +1187,7 @@ Failed to retrieve project's secrets
<br />
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
### Bulk create secrets {#bulk-create-secrets}
@@ -936,24 +1198,38 @@ POST https://api.supabase.com/v1/projects/{ref}/secrets
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-#### Parameters
+
+#### Path Parameters
<ul className="method-list-group">
<li className="method-list-item">
- <h4 className="method-list-item-label">
- <span className="method-list-item-label-name">ref</span>
- <span className="method-list-item-label-badge">required</span>
- <span className="method-list-item-validation"></span>
- </h4>
- <div class="method-list-item-description">Project ref</div>
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ ref
+ </span>
+ <span className="method-list-item-label-badge">
+ required
+ </span>
+ <span className="method-list-item-validation">
+
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+ Project ref
+ </div>
</li>
</ul>
+
+
+
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-#### Body
+
+#### Body Parameters
```json
{
@@ -970,12 +1246,16 @@ POST https://api.supabase.com/v1/projects/{ref}/secrets
"pattern": {}
}
},
- "required": ["name", "value"]
+ "required": [
+ "name",
+ "value"
+ ]
}
}
}
```
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
#### Responses
@@ -984,8 +1264,12 @@ POST https://api.supabase.com/v1/projects/{ref}/secrets
<TabItem value="201">
+
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
+
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
</TabItem>
@@ -996,6 +1280,8 @@ Failed to create project's secrets
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
+
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
</TabItem>
@@ -1004,6 +1290,7 @@ Failed to create project's secrets
<br />
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
### Bulk delete secrets {#bulk-delete-secrets}
@@ -1014,24 +1301,38 @@ DELETE https://api.supabase.com/v1/projects/{ref}/secrets
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-#### Parameters
+
+#### Path Parameters
<ul className="method-list-group">
<li className="method-list-item">
- <h4 className="method-list-item-label">
- <span className="method-list-item-label-name">ref</span>
- <span className="method-list-item-label-badge">required</span>
- <span className="method-list-item-validation"></span>
- </h4>
- <div class="method-list-item-description">Project ref</div>
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ ref
+ </span>
+ <span className="method-list-item-label-badge">
+ required
+ </span>
+ <span className="method-list-item-validation">
+
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+ Project ref
+ </div>
</li>
</ul>
+
+
+
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-#### Body
+
+#### Body Parameters
```json
{
@@ -1044,6 +1345,7 @@ DELETE https://api.supabase.com/v1/projects/{ref}/secrets
}
```
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
#### Responses
@@ -1052,8 +1354,11 @@ DELETE https://api.supabase.com/v1/projects/{ref}/secrets
<TabItem value="200">
+
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
+
```json
{
"schema": {
@@ -1062,6 +1367,7 @@ DELETE https://api.supabase.com/v1/projects/{ref}/secrets
}
```
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
</TabItem>
@@ -1072,6 +1378,8 @@ Failed to delete secrets with given names
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
+
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
</TabItem>
@@ -1079,3 +1387,4 @@ Failed to delete secrets with given names
</Tabs>
<br />
+
diff --git a/apps/reference/_storage/generated/usage.mdx b/apps/reference/_storage/generated/usage.mdx
index 9fbd3638b54..31d4fae954e 100644
--- a/apps/reference/_storage/generated/usage.mdx
+++ b/apps/reference/_storage/generated/usage.mdx
@@ -35,7 +35,7 @@ DELETE /object/{bucketName}/{wildcard}
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-#### Parameters
+#### Path Parameters
<ul className="method-list-group">
@@ -73,6 +73,13 @@ DELETE /object/{bucketName}/{wildcard}
</div>
</li>
+</ul>
+
+
+
+#### Header Parameters
+<ul className="method-list-group">
+
<li className="method-list-item">
<h4 className="method-list-item-label">
<span className="method-list-item-label-name">
@@ -93,6 +100,7 @@ DELETE /object/{bucketName}/{wildcard}
</ul>
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
@@ -182,7 +190,7 @@ PUT /object/{bucketName}/{wildcard}
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-#### Parameters
+#### Path Parameters
<ul className="method-list-group">
@@ -220,6 +228,13 @@ PUT /object/{bucketName}/{wildcard}
</div>
</li>
+</ul>
+
+
+
+#### Header Parameters
+<ul className="method-list-group">
+
<li className="method-list-item">
<h4 className="method-list-item-label">
<span className="method-list-item-label-name">
@@ -240,6 +255,7 @@ PUT /object/{bucketName}/{wildcard}
</ul>
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
@@ -332,7 +348,7 @@ POST /object/{bucketName}/{wildcard}
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-#### Parameters
+#### Path Parameters
<ul className="method-list-group">
@@ -370,6 +386,13 @@ POST /object/{bucketName}/{wildcard}
</div>
</li>
+</ul>
+
+
+
+#### Header Parameters
+<ul className="method-list-group">
+
<li className="method-list-item">
<h4 className="method-list-item-label">
<span className="method-list-item-label-name">
@@ -390,6 +413,7 @@ POST /object/{bucketName}/{wildcard}
</ul>
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
@@ -482,7 +506,7 @@ DELETE /object/{bucketName}
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-#### Parameters
+#### Path Parameters
<ul className="method-list-group">
@@ -503,6 +527,13 @@ DELETE /object/{bucketName}
</div>
</li>
+</ul>
+
+
+
+#### Header Parameters
+<ul className="method-list-group">
+
<li className="method-list-item">
<h4 className="method-list-item-label">
<span className="method-list-item-label-name">
@@ -523,10 +554,11 @@ DELETE /object/{bucketName}
</ul>
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-#### Body
+#### Body Parameters
```json
{
@@ -749,7 +781,7 @@ GET /object/authenticated/{bucketName}/{wildcard}
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-#### Parameters
+#### Path Parameters
<ul className="method-list-group">
@@ -787,6 +819,13 @@ GET /object/authenticated/{bucketName}/{wildcard}
</div>
</li>
+</ul>
+
+
+
+#### Header Parameters
+<ul className="method-list-group">
+
<li className="method-list-item">
<h4 className="method-list-item-label">
<span className="method-list-item-label-name">
@@ -807,6 +846,7 @@ GET /object/authenticated/{bucketName}/{wildcard}
</ul>
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
@@ -870,7 +910,7 @@ POST /object/sign/{bucketName}/{wildcard}
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-#### Parameters
+#### Path Parameters
<ul className="method-list-group">
@@ -908,6 +948,13 @@ POST /object/sign/{bucketName}/{wildcard}
</div>
</li>
+</ul>
+
+
+
+#### Header Parameters
+<ul className="method-list-group">
+
<li className="method-list-item">
<h4 className="method-list-item-label">
<span className="method-list-item-label-name">
@@ -928,10 +975,11 @@ POST /object/sign/{bucketName}/{wildcard}
</ul>
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-#### Body
+#### Body Parameters
```json
{
@@ -1040,27 +1088,10 @@ GET /object/sign/{bucketName}/{wildcard}
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-#### Parameters
+#### Path Parameters
<ul className="method-list-group">
-<li className="method-list-item">
- <h4 className="method-list-item-label">
- <span className="method-list-item-label-name">
- token
- </span>
- <span className="method-list-item-label-badge">
- required
- </span>
- <span className="method-list-item-validation">
-
- </span>
- </h4>
- <div class="method-list-item-description">
-
- </div>
-</li>
-
<li className="method-list-item">
<h4 className="method-list-item-label">
<span className="method-list-item-label-name">
@@ -1098,6 +1129,9 @@ GET /object/sign/{bucketName}/{wildcard}
</ul>
+
+
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
@@ -1161,7 +1195,7 @@ POST /object/sign/{bucketName}
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-#### Parameters
+#### Path Parameters
<ul className="method-list-group">
@@ -1182,6 +1216,13 @@ POST /object/sign/{bucketName}
</div>
</li>
+</ul>
+
+
+
+#### Header Parameters
+<ul className="method-list-group">
+
<li className="method-list-item">
<h4 className="method-list-item-label">
<span className="method-list-item-label-name">
@@ -1202,10 +1243,11 @@ POST /object/sign/{bucketName}
</ul>
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-#### Body
+#### Body Parameters
```json
{
@@ -1345,8 +1387,9 @@ POST /object/move
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-#### Parameters
+
+#### Header Parameters
<ul className="method-list-group">
<li className="method-list-item">
@@ -1369,10 +1412,11 @@ POST /object/move
</ul>
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-#### Body
+#### Body Parameters
```json
{
@@ -1490,7 +1534,7 @@ POST /object/list/{bucketName}
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-#### Parameters
+#### Path Parameters
<ul className="method-list-group">
@@ -1511,6 +1555,13 @@ POST /object/list/{bucketName}
</div>
</li>
+</ul>
+
+
+
+#### Header Parameters
+<ul className="method-list-group">
+
<li className="method-list-item">
<h4 className="method-list-item-label">
<span className="method-list-item-label-name">
@@ -1531,10 +1582,11 @@ POST /object/list/{bucketName}
</ul>
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-#### Body
+#### Body Parameters
```json
{
@@ -1786,8 +1838,9 @@ POST /object/copy
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-#### Parameters
+
+#### Header Parameters
<ul className="method-list-group">
<li className="method-list-item">
@@ -1810,10 +1863,11 @@ POST /object/copy
</ul>
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-#### Body
+#### Body Parameters
```json
{
@@ -1931,7 +1985,7 @@ GET /object/public/{bucketName}/{wildcard}
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-#### Parameters
+#### Path Parameters
<ul className="method-list-group">
@@ -1972,6 +2026,9 @@ GET /object/public/{bucketName}/{wildcard}
</ul>
+
+
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
@@ -2042,8 +2099,9 @@ POST /bucket/
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-#### Parameters
+
+#### Header Parameters
<ul className="method-list-group">
<li className="method-list-item">
@@ -2066,10 +2124,11 @@ POST /bucket/
</ul>
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-#### Body
+#### Body Parameters
```json
{
@@ -2185,8 +2244,9 @@ GET /bucket/
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-#### Parameters
+
+#### Header Parameters
<ul className="method-list-group">
<li className="method-list-item">
@@ -2209,6 +2269,7 @@ GET /bucket/
</ul>
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
@@ -2346,7 +2407,7 @@ POST /bucket/{bucketId}/empty
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-#### Parameters
+#### Path Parameters
<ul className="method-list-group">
@@ -2367,6 +2428,13 @@ POST /bucket/{bucketId}/empty
</div>
</li>
+</ul>
+
+
+
+#### Header Parameters
+<ul className="method-list-group">
+
<li className="method-list-item">
<h4 className="method-list-item-label">
<span className="method-list-item-label-name">
@@ -2387,6 +2455,7 @@ POST /bucket/{bucketId}/empty
</ul>
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
@@ -2476,7 +2545,7 @@ GET /bucket/{bucketId}
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-#### Parameters
+#### Path Parameters
<ul className="method-list-group">
@@ -2497,6 +2566,13 @@ GET /bucket/{bucketId}
</div>
</li>
+</ul>
+
+
+
+#### Header Parameters
+<ul className="method-list-group">
+
<li className="method-list-item">
<h4 className="method-list-item-label">
<span className="method-list-item-label-name">
@@ -2517,6 +2593,7 @@ GET /bucket/{bucketId}
</ul>
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
@@ -2639,8 +2716,9 @@ PUT /bucket/{bucketId}
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-#### Parameters
+
+#### Header Parameters
<ul className="method-list-group">
<li className="method-list-item">
@@ -2663,10 +2741,11 @@ PUT /bucket/{bucketId}
</ul>
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-#### Body
+#### Body Parameters
```json
{
@@ -2771,7 +2850,7 @@ DELETE /bucket/{bucketId}
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-#### Parameters
+#### Path Parameters
<ul className="method-list-group">
@@ -2792,6 +2871,13 @@ DELETE /bucket/{bucketId}
</div>
</li>
+</ul>
+
+
+
+#### Header Parameters
+<ul className="method-list-group">
+
<li className="method-list-item">
<h4 className="method-list-item-label">
<span className="method-list-item-label-name">
@@ -2812,6 +2898,7 @@ DELETE /bucket/{bucketId}
</ul>
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
@@ -2908,7 +2995,7 @@ GET /object/{bucketName}/{wildcard}
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-#### Parameters
+#### Path Parameters
<ul className="method-list-group">
@@ -2946,6 +3033,13 @@ GET /object/{bucketName}/{wildcard}
</div>
</li>
+</ul>
+
+
+
+#### Header Parameters
+<ul className="method-list-group">
+
<li className="method-list-item">
<h4 className="method-list-item-label">
<span className="method-list-item-label-name">
@@ -2966,6 +3060,7 @@ GET /object/{bucketName}/{wildcard}
</ul>
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
diff --git a/packages/generator/src/docs/templates/ApiTemplate.ts b/packages/generator/src/docs/templates/ApiTemplate.ts
index d13ec720b05..7440d9c001d 100644
--- a/packages/generator/src/docs/templates/ApiTemplate.ts
+++ b/packages/generator/src/docs/templates/ApiTemplate.ts
@@ -35,11 +35,12 @@ import TabItem from '@theme/TabItem';
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
-<% if(operation.parameters && operation.parameters.length){ %>
-#### Parameters
+<% if(operation.parameters && operation.parameters.filter((parameter) => parameter.in === 'path').length > 0){ %>
+#### Path Parameters
<ul className="method-list-group">
-<% operation.parameters.forEach(function(parameter){ %>
+<% operation.parameters
+.filter((parameter) => parameter.in === 'path').forEach(function(parameter){ %>
<li className="method-list-item">
<h4 className="method-list-item-label">
<span className="method-list-item-label-name">
@@ -60,10 +61,36 @@ import TabItem from '@theme/TabItem';
</ul>
<% }; %>
+<% if(operation.parameters && operation.parameters.filter((parameter) => parameter.in === 'header').length > 0){ %>
+#### Header Parameters
+<ul className="method-list-group">
+<% operation.parameters
+.filter((parameter) => parameter.in === 'header').forEach(function(parameter){ %>
+<li className="method-list-item">
+ <h4 className="method-list-item-label">
+ <span className="method-list-item-label-name">
+ <%- parameter.name %>
+ </span>
+ <span className="method-list-item-label-badge">
+ <%- parameter.required ? 'required' : 'optional' %>
+ </span>
+ <span className="method-list-item-validation">
+ <%- parameter.type %>
+ </span>
+ </h4>
+ <div class="method-list-item-description">
+ <%- parameter.description %>
+ </div>
+</li>
+<% }); %>
+</ul>
+<% }; %>
+
+
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
<% if(operation.requestBody?.content && operation.requestBody?.content['application/json']){ %>
-#### Body
+#### Body Parameters
\`\`\`json
<%- JSON.stringify(operation.requestBody?.content['application/json'], null, 2) %>