Skip to content

Commit 48f7f9c

Browse files
authored
Merge pull request #68 from makeplane/fix-attachments-api
Minor changes in APIs
2 parents 9a39eb9 + 19d3a0b commit 48f7f9c

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

api-reference/issue-attachments/get-upload-credentials.mdx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,8 @@ The workspace-slug represents the unique workspace identifier for a workspace in
1616
### Body
1717

1818
<ParamField body="name" type="string" required>Original filename of the attachment</ParamField>
19-
<ParamField body="type" type="string" required>Size of the file in bytes</ParamField>
20-
<ParamField body="size" type="integer" required>MIME type of the file (e.g., `image/png`, `application/pdf`)</ParamField>
21-
19+
<ParamField body="type" type="string" required>MIME type of the file (e.g., `image/png`, `application/pdf`)</ParamField>
20+
<ParamField body="size" type="integer" required>Size of the file in bytes</ParamField>
2221

2322
### Response
2423
Returns an object containing the S3 pre-signed POST data for direct upload.

api-reference/issue-attachments/upload-file.mdx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
11
---
22
title: Upload file
33
description: Upload the file using the credentials generated by the [Get upload credentials](/api-reference/issue-attachments/get-upload-credentials) endpoint.
4-
api: POST paste-upload-url
4+
api: POST https://planefs-uploads.s3.amazonaws.com/
55
---
66

7+
<Warning>
8+
**Self-hosted instances**
9+
10+
Use the upload URL returned by the [Get upload credentials](/api-reference/issue-attachments/get-upload-credentials) endpoint.
11+
12+
</Warning>
13+
714
### Body
815

916
<ParamField body="Content-Type" type="string" required>The MIME type of the file</ParamField>
File renamed without changes.

mint.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@
306306
"pages": [
307307
"api-reference/worklogs/overview",
308308
"api-reference/worklogs/get-worklogs-for-issue",
309-
"api-reference/worklogs/get-all-worklogs",
309+
"api-reference/worklogs/get-total-time",
310310
"api-reference/worklogs/create-worklog",
311311
"api-reference/worklogs/update-worklog",
312312
"api-reference/worklogs/delete-worklog"

0 commit comments

Comments
 (0)