Skip to content

Commit fcf7185

Browse files
committed
chore: upate description
1 parent d5bc98a commit fcf7185

File tree

207 files changed

+5853
-6167
lines changed

Some content is hidden

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

207 files changed

+5853
-6167
lines changed

docs/api-reference/assets/create-user-asset-upload.md

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ Original filename of the asset
3232

3333
MIME type of the file
3434

35-
- `image/jpeg` - JPEG
36-
- `image/png` - PNG
37-
- `image/webp` - WebP
38-
- `image/jpg` - JPG
39-
- `image/gif` - GIF
35+
* `image/jpeg` - JPEG
36+
* `image/png` - PNG
37+
* `image/webp` - WebP
38+
* `image/jpg` - JPG
39+
* `image/gif` - GIF
4040

4141
</ApiParam>
4242

@@ -50,8 +50,8 @@ File size in bytes
5050

5151
Type of user asset
5252

53-
- `USER_AVATAR` - User Avatar
54-
- `USER_COVER` - User Cover
53+
* `USER_AVATAR` - User Avatar
54+
* `USER_COVER` - User Cover
5555

5656
</ApiParam>
5757

@@ -66,6 +66,7 @@ Type of user asset
6666

6767
</div>
6868

69+
6970
</div>
7071

7172
<div class="api-right">
@@ -114,14 +115,14 @@ const response = await fetch("https://api.plane.so/api/v1/assets/user-assets/",
114115
method: "POST",
115116
headers: {
116117
"X-API-Key": "your-api-key",
117-
"Content-Type": "application/json",
118+
"Content-Type": "application/json"
118119
},
119120
body: JSON.stringify({
120-
name: "Example Name",
121-
type: "image/jpeg",
122-
size: 1024000,
123-
entity_type: "USER_AVATAR",
124-
}),
121+
"name": "Example Name",
122+
"type": "image/jpeg",
123+
"size": 1024000,
124+
"entity_type": "USER_AVATAR"
125+
}),
125126
});
126127
const data = await response.json();
127128
```

docs/api-reference/assets/create-workspace-asset-upload.md

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ keywords: plane, plane api, rest api, api integration, assets, create workspace
88

99
<div class="api-endpoint-badge">
1010
<span class="method post">POST</span>
11-
<span class="path">/api/v1/workspaces/{slug}/assets/</span>
11+
<span class="path">/api/v1/workspaces/{workspace_slug}/assets/</span>
1212
</div>
1313

1414
<div class="api-two-column">
@@ -22,9 +22,9 @@ Generate presigned URL for generic asset upload
2222

2323
<div class="params-list">
2424

25-
<ApiParam name="slug" type="string" :required="true">
25+
<ApiParam name="workspace_slug" type="string" :required="true">
2626

27-
Workspace slug
27+
The workspace_slug represents the unique workspace identifier for a workspace in Plane. It can be found in the URL. For example, in the URL `https://app.plane.so/my-team/projects/`, the workspace slug is `my-team`.
2828

2929
</ApiParam>
3030

@@ -84,6 +84,7 @@ External source system (for integration tracking)
8484

8585
</div>
8686

87+
8788
</div>
8889

8990
<div class="api-right">
@@ -136,16 +137,16 @@ const response = await fetch("https://api.plane.so/api/v1/workspaces/my-workspac
136137
method: "POST",
137138
headers: {
138139
"X-API-Key": "your-api-key",
139-
"Content-Type": "application/json",
140+
"Content-Type": "application/json"
140141
},
141142
body: JSON.stringify({
142-
name: "Example Name",
143-
type: "image/jpeg",
144-
size: 1024000,
145-
project_id: "550e8400-e29b-41d4-a716-446655440000",
146-
external_id: "550e8400-e29b-41d4-a716-446655440000",
147-
external_source: "github",
148-
}),
143+
"name": "Example Name",
144+
"type": "image/jpeg",
145+
"size": 1024000,
146+
"project_id": "550e8400-e29b-41d4-a716-446655440000",
147+
"external_id": "550e8400-e29b-41d4-a716-446655440000",
148+
"external_source": "github"
149+
}),
149150
});
150151
const data = await response.json();
151152
```

docs/api-reference/assets/delete-user-asset.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ This performs a soft delete by marking the asset as deleted and updating the use
2727

2828
<ApiParam name="asset_id" type="string" :required="true">
2929

30-
Asset ID
30+
The unique identifier of the asset.
3131

3232
</ApiParam>
3333

@@ -42,6 +42,7 @@ Asset ID
4242

4343
</div>
4444

45+
4546
</div>
4647

4748
<div class="api-right">
@@ -51,9 +52,9 @@ Asset ID
5152

5253
```bash
5354
curl -X DELETE \
54-
"https://api.plane.so/api/v1/assets/user-assets/550e8400-e29b-41d4-a716-446655440002/" \
55+
"https://api.plane.so/api/v1/assets/user-assets/asset-uuid/" \
5556
-H "X-API-Key: $PLANE_API_KEY" \
56-
# Or use -H "Authorization: Bearer $PLANE_OAUTH_TOKEN" \
57+
# Or use -H "Authorization: Bearer $PLANE_OAUTH_TOKEN"
5758
```
5859

5960
</template>
@@ -63,7 +64,7 @@ curl -X DELETE \
6364
import requests
6465

6566
response = requests.delete(
66-
"https://api.plane.so/api/v1/assets/user-assets/550e8400-e29b-41d4-a716-446655440002/",
67+
"https://api.plane.so/api/v1/assets/user-assets/asset-uuid/",
6768
headers={"X-API-Key": "your-api-key"}
6869
)
6970
print(response.status_code)
@@ -73,10 +74,10 @@ print(response.status_code)
7374
<template #javascript>
7475

7576
```javascript
76-
const response = await fetch("https://api.plane.so/api/v1/assets/user-assets/550e8400-e29b-41d4-a716-446655440002/", {
77+
const response = await fetch("https://api.plane.so/api/v1/assets/user-assets/asset-uuid/", {
7778
method: "DELETE",
7879
headers: {
79-
"X-API-Key": "your-api-key",
80+
"X-API-Key": "your-api-key"
8081
},
8182
});
8283
console.log(response.status);

docs/api-reference/assets/get-workspace-asset.md

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ keywords: plane, plane api, rest api, api integration, assets, get workspace ass
88

99
<div class="api-endpoint-badge">
1010
<span class="method get">GET</span>
11-
<span class="path">/api/v1/workspaces/{slug}/assets/{asset_id}/</span>
11+
<span class="path">/api/v1/workspaces/{workspace_slug}/assets/{asset_id}/</span>
1212
</div>
1313

1414
<div class="api-two-column">
@@ -24,13 +24,13 @@ Get presigned URL for asset download
2424

2525
<ApiParam name="asset_id" type="string" :required="true">
2626

27-
Asset id.
27+
The unique identifier of the asset.
2828

2929
</ApiParam>
3030

31-
<ApiParam name="slug" type="string" :required="true">
31+
<ApiParam name="workspace_slug" type="string" :required="true">
3232

33-
Workspace slug
33+
The workspace_slug represents the unique workspace identifier for a workspace in Plane. It can be found in the URL. For example, in the URL `https://app.plane.so/my-team/projects/`, the workspace slug is `my-team`.
3434

3535
</ApiParam>
3636

@@ -45,6 +45,7 @@ Workspace slug
4545

4646
</div>
4747

48+
4849
</div>
4950

5051
<div class="api-right">
@@ -54,9 +55,9 @@ Workspace slug
5455

5556
```bash
5657
curl -X GET \
57-
"https://api.plane.so/api/v1/workspaces/my-workspace/assets/550e8400-e29b-41d4-a716-446655440002/" \
58+
"https://api.plane.so/api/v1/workspaces/my-workspace/assets/asset-uuid/" \
5859
-H "X-API-Key: $PLANE_API_KEY" \
59-
# Or use -H "Authorization: Bearer $PLANE_OAUTH_TOKEN" \
60+
# Or use -H "Authorization: Bearer $PLANE_OAUTH_TOKEN"
6061
```
6162

6263
</template>
@@ -66,7 +67,7 @@ curl -X GET \
6667
import requests
6768

6869
response = requests.get(
69-
"https://api.plane.so/api/v1/workspaces/my-workspace/assets/550e8400-e29b-41d4-a716-446655440002/",
70+
"https://api.plane.so/api/v1/workspaces/my-workspace/assets/asset-uuid/",
7071
headers={"X-API-Key": "your-api-key"}
7172
)
7273
print(response.json())
@@ -76,15 +77,12 @@ print(response.json())
7677
<template #javascript>
7778

7879
```javascript
79-
const response = await fetch(
80-
"https://api.plane.so/api/v1/workspaces/my-workspace/assets/550e8400-e29b-41d4-a716-446655440002/",
81-
{
82-
method: "GET",
83-
headers: {
84-
"X-API-Key": "your-api-key",
85-
},
86-
}
87-
);
80+
const response = await fetch("https://api.plane.so/api/v1/workspaces/my-workspace/assets/asset-uuid/", {
81+
method: "GET",
82+
headers: {
83+
"X-API-Key": "your-api-key"
84+
},
85+
});
8886
const data = await response.json();
8987
```
9088

docs/api-reference/assets/overview.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ Assets let you upload and manage files used across user profiles and workspaces,
1717

1818
### Attributes
1919

20+
21+
2022
</div>
2123
<div class="api-right">
2224

docs/api-reference/assets/update-user-asset.md

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Mark user asset as uploaded
2424

2525
<ApiParam name="asset_id" type="string" :required="true">
2626

27-
Asset ID
27+
The unique identifier of the asset.
2828

2929
</ApiParam>
3030

@@ -54,6 +54,7 @@ Additional attributes to update for the asset
5454

5555
</div>
5656

57+
5758
</div>
5859

5960
<div class="api-right">
@@ -63,7 +64,7 @@ Additional attributes to update for the asset
6364

6465
```bash
6566
curl -X PATCH \
66-
"https://api.plane.so/api/v1/assets/user-assets/550e8400-e29b-41d4-a716-446655440002/" \
67+
"https://api.plane.so/api/v1/assets/user-assets/asset-uuid/" \
6768
-H "X-API-Key: $PLANE_API_KEY" \
6869
# Or use -H "Authorization: Bearer $PLANE_OAUTH_TOKEN" \
6970
-H "Content-Type: application/json" \
@@ -84,7 +85,7 @@ curl -X PATCH \
8485
import requests
8586

8687
response = requests.patch(
87-
"https://api.plane.so/api/v1/assets/user-assets/550e8400-e29b-41d4-a716-446655440002/",
88+
"https://api.plane.so/api/v1/assets/user-assets/asset-uuid/",
8889
headers={"X-API-Key": "your-api-key"},
8990
json={
9091
"attributes": {
@@ -102,20 +103,20 @@ print(response.status_code)
102103
<template #javascript>
103104

104105
```javascript
105-
const response = await fetch("https://api.plane.so/api/v1/assets/user-assets/550e8400-e29b-41d4-a716-446655440002/", {
106+
const response = await fetch("https://api.plane.so/api/v1/assets/user-assets/asset-uuid/", {
106107
method: "PATCH",
107108
headers: {
108109
"X-API-Key": "your-api-key",
109-
"Content-Type": "application/json",
110+
"Content-Type": "application/json"
110111
},
111112
body: JSON.stringify({
112-
attributes: {
113-
name: "Example Name",
114-
type: "image/jpeg",
115-
size: 1024000,
116-
},
117-
entity_type: "USER_AVATAR",
118-
}),
113+
"attributes": {
114+
"name": "Example Name",
115+
"type": "image/jpeg",
116+
"size": 1024000
117+
},
118+
"entity_type": "USER_AVATAR"
119+
}),
119120
});
120121
console.log(response.status);
121122
```

docs/api-reference/assets/update-workspace-asset.md

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ keywords: plane, plane api, rest api, api integration, assets, update workspace
88

99
<div class="api-endpoint-badge">
1010
<span class="method patch">PATCH</span>
11-
<span class="path">/api/v1/workspaces/{slug}/assets/{asset_id}/</span>
11+
<span class="path">/api/v1/workspaces/{workspace_slug}/assets/{asset_id}/</span>
1212
</div>
1313

1414
<div class="api-two-column">
@@ -24,13 +24,13 @@ Update generic asset after upload completion
2424

2525
<ApiParam name="asset_id" type="string" :required="true">
2626

27-
Asset ID
27+
The unique identifier of the asset.
2828

2929
</ApiParam>
3030

31-
<ApiParam name="slug" type="string" :required="true">
31+
<ApiParam name="workspace_slug" type="string" :required="true">
3232

33-
Workspace slug
33+
The workspace_slug represents the unique workspace identifier for a workspace in Plane. It can be found in the URL. For example, in the URL `https://app.plane.so/my-team/projects/`, the workspace slug is `my-team`.
3434

3535
</ApiParam>
3636

@@ -60,6 +60,7 @@ Whether the asset has been successfully uploaded
6060

6161
</div>
6262

63+
6364
</div>
6465

6566
<div class="api-right">
@@ -69,7 +70,7 @@ Whether the asset has been successfully uploaded
6970

7071
```bash
7172
curl -X PATCH \
72-
"https://api.plane.so/api/v1/workspaces/my-workspace/assets/550e8400-e29b-41d4-a716-446655440002/" \
73+
"https://api.plane.so/api/v1/workspaces/my-workspace/assets/asset-uuid/" \
7374
-H "X-API-Key: $PLANE_API_KEY" \
7475
# Or use -H "Authorization: Bearer $PLANE_OAUTH_TOKEN" \
7576
-H "Content-Type: application/json" \
@@ -85,7 +86,7 @@ curl -X PATCH \
8586
import requests
8687

8788
response = requests.patch(
88-
"https://api.plane.so/api/v1/workspaces/my-workspace/assets/550e8400-e29b-41d4-a716-446655440002/",
89+
"https://api.plane.so/api/v1/workspaces/my-workspace/assets/asset-uuid/",
8990
headers={"X-API-Key": "your-api-key"},
9091
json={
9192
"is_uploaded": true
@@ -98,19 +99,16 @@ print(response.status_code)
9899
<template #javascript>
99100

100101
```javascript
101-
const response = await fetch(
102-
"https://api.plane.so/api/v1/workspaces/my-workspace/assets/550e8400-e29b-41d4-a716-446655440002/",
103-
{
104-
method: "PATCH",
105-
headers: {
106-
"X-API-Key": "your-api-key",
107-
"Content-Type": "application/json",
108-
},
109-
body: JSON.stringify({
110-
is_uploaded: true,
111-
}),
112-
}
113-
);
102+
const response = await fetch("https://api.plane.so/api/v1/workspaces/my-workspace/assets/asset-uuid/", {
103+
method: "PATCH",
104+
headers: {
105+
"X-API-Key": "your-api-key",
106+
"Content-Type": "application/json"
107+
},
108+
body: JSON.stringify({
109+
"is_uploaded": true
110+
}),
111+
});
114112
console.log(response.status);
115113
```
116114

0 commit comments

Comments
 (0)