Skip to content

Commit e2acb08

Browse files
authored
Merge pull request #209 from makeplane/feat-oauth_scopes_docs
[SILO-952] feat: add OAuth scopes support docs
2 parents 59064ac + b006507 commit e2acb08

File tree

173 files changed

+2589
-947
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

173 files changed

+2589
-947
lines changed

docs/.vitepress/config.mts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ export default withMermaid(defineConfig({
141141
nav: [
142142
{ text: 'Self-hosting', link: '/self-hosting/overview' },
143143
{ text: 'API Reference', link: '/api-reference/introduction' },
144-
{ text: 'Build and extend', link: '/dev-tools/build-plane-app' },
144+
{ text: 'Build and extend', link: '/dev-tools/build-plane-app/overview' },
145145
{ text: 'Plane Docs', link: 'https://docs.plane.so' },
146146
{ text: 'Sign in', link: 'https://app.plane.so/sign-in' }
147147
],
@@ -649,7 +649,17 @@ export default withMermaid(defineConfig({
649649
{
650650
text: 'Build and extend Plane',
651651
items: [
652-
{ text: 'Build Plane App', link: '/dev-tools/build-plane-app' },
652+
{
653+
text: 'Build Plane App', collapsed: false, items: [
654+
{ text: 'Overview', link: '/dev-tools/build-plane-app/overview' },
655+
{ text: 'Create an OAuth application', link: '/dev-tools/build-plane-app/create-oauth-application' },
656+
{ text: 'Choose token Flow', link: '/dev-tools/build-plane-app/choose-token-flow' },
657+
{ text: 'Handling webhooks', link: '/dev-tools/build-plane-app/webhooks' },
658+
{ text: 'OAuth scopes', link: '/dev-tools/build-plane-app/oauth-scopes' },
659+
{ text: 'SDKs', link: '/dev-tools/build-plane-app/sdks' },
660+
{ text: 'Complete examples', link: '/dev-tools/build-plane-app/examples' }
661+
]
662+
},
653663
{
654664
text: 'Agents',
655665
collapsed: false,

docs/api-reference/customer/add-customer-property.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,14 @@ External ID from the external source.
130130
</div>
131131
</div>
132132

133+
<div class="params-section">
134+
135+
### Scopes
136+
137+
`customers.properties:write`
138+
139+
</div>
140+
133141
</div>
134142
<div class="api-right">
135143

@@ -140,6 +148,7 @@ External ID from the external source.
140148
curl -X POST \
141149
"https://api.plane.so/api/v1/workspaces/my-workspace/customer-properties/" \
142150
-H "X-API-Key: $PLANE_API_KEY" \
151+
# Or use -H "Authorization: Bearer $PLANE_OAUTH_TOKEN" \
143152
-H "Content-Type: application/json" \
144153
-d '{
145154
"name": "example-name",
@@ -237,3 +246,4 @@ const data = await response.json();
237246

238247
</div>
239248
</div>
249+

docs/api-reference/customer/add-customer-request.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,14 @@ Description of the request.
5858
</div>
5959
</div>
6060

61+
<div class="params-section">
62+
63+
### Scopes
64+
65+
`customers.requests:write`
66+
67+
</div>
68+
6169
</div>
6270
<div class="api-right">
6371

@@ -68,6 +76,7 @@ Description of the request.
6876
curl -X POST \
6977
"https://api.plane.so/api/v1/workspaces/my-workspace/customers/{customer_id}/requests/" \
7078
-H "X-API-Key: $PLANE_API_KEY" \
79+
# Or use -H "Authorization: Bearer $PLANE_OAUTH_TOKEN" \
7180
-H "Content-Type: application/json" \
7281
-d '{
7382
"title": "example-title",

docs/api-reference/customer/add-customer.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,14 @@ Email address of the customer.
5252
</div>
5353
</div>
5454

55+
<div class="params-section">
56+
57+
### Scopes
58+
59+
`customers:write`
60+
61+
</div>
62+
5563
</div>
5664
<div class="api-right">
5765

@@ -62,6 +70,7 @@ Email address of the customer.
6270
curl -X POST \
6371
"https://api.plane.so/api/v1/workspaces/my-workspace/customers/" \
6472
-H "X-API-Key: $PLANE_API_KEY" \
73+
# Or use -H "Authorization: Bearer $PLANE_OAUTH_TOKEN" \
6574
-H "Content-Type: application/json" \
6675
-d '{
6776
"name": "example-name",

docs/api-reference/customer/delete-customer-property.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,14 @@ The unique identifier for the customer property.
3737
</div>
3838
</div>
3939

40+
<div class="params-section">
41+
42+
### Scopes
43+
44+
`customers.properties:write`
45+
46+
</div>
47+
4048
</div>
4149
<div class="api-right">
4250

@@ -46,7 +54,8 @@ The unique identifier for the customer property.
4654
```bash
4755
curl -X DELETE \
4856
"https://api.plane.so/api/v1/workspaces/my-workspace/customer-properties/{property_id}/" \
49-
-H "X-API-Key: $PLANE_API_KEY"
57+
-H "X-API-Key: $PLANE_API_KEY" \
58+
# Or use -H "Authorization: Bearer $PLANE_OAUTH_TOKEN" \
5059
```
5160

5261
</template>

docs/api-reference/customer/delete-customer-request.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,14 @@ The unique identifier for the request.
4343
</div>
4444
</div>
4545

46+
<div class="params-section">
47+
48+
### Scopes
49+
50+
`customers.requests:write`
51+
52+
</div>
53+
4654
</div>
4755
<div class="api-right">
4856

@@ -53,6 +61,7 @@ The unique identifier for the request.
5361
curl -X DELETE \
5462
"https://api.plane.so/api/v1/workspaces/my-workspace/customers/{customer_id}/requests/{request_id}/" \
5563
-H "X-API-Key: $PLANE_API_KEY"
64+
# Or use -H "Authorization: Bearer $PLANE_OAUTH_TOKEN" \
5665
```
5766

5867
</template>

docs/api-reference/customer/delete-customer.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,14 @@ The unique identifier for the customer.
3737
</div>
3838
</div>
3939

40+
<div class="params-section">
41+
42+
### Scopes
43+
44+
`customers:write`
45+
46+
</div>
47+
4048
</div>
4149
<div class="api-right">
4250

@@ -46,7 +54,8 @@ The unique identifier for the customer.
4654
```bash
4755
curl -X DELETE \
4856
"https://api.plane.so/api/v1/workspaces/my-workspace/customers/{customer_id}/" \
49-
-H "X-API-Key: $PLANE_API_KEY"
57+
-H "X-API-Key: $PLANE_API_KEY" \
58+
# Or use -H "Authorization: Bearer $PLANE_OAUTH_TOKEN" \
5059
```
5160

5261
</template>

docs/api-reference/customer/get-customer-detail.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,14 @@ The unique identifier for the customer.
3737
</div>
3838
</div>
3939

40+
<div class="params-section">
41+
42+
### Scopes
43+
44+
`customers:read`
45+
46+
</div>
47+
4048
</div>
4149
<div class="api-right">
4250

@@ -47,6 +55,7 @@ The unique identifier for the customer.
4755
curl -X GET \
4856
"https://api.plane.so/api/v1/workspaces/my-workspace/customers/{customer_id}/" \
4957
-H "X-API-Key: $PLANE_API_KEY"
58+
# Or use -H "Authorization: Bearer $PLANE_OAUTH_TOKEN" \
5059
```
5160

5261
</template>

docs/api-reference/customer/get-customer-property-detail.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,14 @@ The unique identifier for the customer property.
3737
</div>
3838
</div>
3939

40+
<div class="params-section">
41+
42+
### Scopes
43+
44+
`customers.properties:read`
45+
46+
</div>
47+
4048
</div>
4149
<div class="api-right">
4250

@@ -47,6 +55,7 @@ The unique identifier for the customer property.
4755
curl -X GET \
4856
"https://api.plane.so/api/v1/workspaces/my-workspace/customer-properties/{property_id}/" \
4957
-H "X-API-Key: $PLANE_API_KEY"
58+
# Or use -H "Authorization: Bearer $PLANE_OAUTH_TOKEN" \
5059
```
5160

5261
</template>

docs/api-reference/customer/get-customer-property-value.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,14 @@ The unique identifier for the customer property.
4343
</div>
4444
</div>
4545

46+
<div class="params-section">
47+
48+
### Scopes
49+
50+
`customers.property_values:read`
51+
52+
</div>
53+
4654
</div>
4755
<div class="api-right">
4856

@@ -53,6 +61,7 @@ The unique identifier for the customer property.
5361
curl -X GET \
5462
"https://api.plane.so/api/v1/workspaces/my-workspace/customers/{customer_id}/property-values/{property_id}/" \
5563
-H "X-API-Key: $PLANE_API_KEY"
64+
# Or use -H "Authorization: Bearer $PLANE_OAUTH_TOKEN" \
5665
```
5766

5867
</template>

0 commit comments

Comments
 (0)