Skip to content

Commit 076be7b

Browse files
committed
add OAuth scopes support docs
1 parent a31733b commit 076be7b

File tree

175 files changed

+2613
-941
lines changed

Some content is hidden

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

175 files changed

+2613
-941
lines changed

docs/.vitepress/config.mts

Lines changed: 15 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,20 @@ 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 Your Flow', link: '/dev-tools/build-plane-app/choose-token-flow' },
657+
{ text: 'Making API Requests', link: '/dev-tools/build-plane-app/making-api-requests' },
658+
{ text: 'Handling Webhooks', link: '/dev-tools/build-plane-app/webhooks' },
659+
{ text: 'Local Development', link: '/dev-tools/build-plane-app/local-development' },
660+
{ text: 'OAuth Scopes', link: '/dev-tools/build-plane-app/oauth-scopes' },
661+
{ text: 'SDKs', link: '/dev-tools/build-plane-app/sdks' },
662+
{ text: 'Complete Examples', link: '/dev-tools/build-plane-app/examples' },
663+
{ text: 'Next Steps', link: '/dev-tools/build-plane-app/next-steps' }
664+
]
665+
},
653666
{
654667
text: 'Agents',
655668
collapsed: false,

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

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

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

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

242251
</div>
243252
</div>
253+

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

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

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

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

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

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

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

@@ -63,6 +71,7 @@ Email address of the customer.
6371
curl -X POST \
6472
"https://api.plane.so/api/v1/workspaces/my-workspace/customers/" \
6573
-H "X-API-Key: $PLANE_API_KEY" \
74+
# Or use -H "Authorization: Bearer $PLANE_OAUTH_TOKEN" \
6675
-H "Content-Type: application/json" \
6776
-d '{
6877
"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
@@ -38,6 +38,14 @@ The unique identifier for the customer property.
3838
</div>
3939
</div>
4040

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

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

5362
</template>

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

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

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

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

5968
</template>

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

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

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

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

5362
</template>

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

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

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

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

5362
</template>

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

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

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

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

5362
</template>

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

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

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

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

5968
</template>

0 commit comments

Comments
 (0)