Skip to content

Commit f4d17db

Browse files
committed
feat: upload from an existing url
1 parent 51fd989 commit f4d17db

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

pages/public-api.mdx

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,34 @@ Response:
111111
}
112112
```
113113

114+
<br />
115+
### Upload a new file from an existing URL
116+
117+
```http
118+
POST https://api.postiz.com/public/v1/upload-from-url
119+
```
120+
121+
Payload:
122+
123+
```json
124+
{
125+
"url": "Your URL path"
126+
}
127+
```
128+
129+
Response:
130+
131+
```json
132+
{
133+
"id": "e639003b-f727-4a1e-87bd-74a2c48ae41e",
134+
"name": "vXJYn8EzSB.png",
135+
"path": "https://uploads.gitroom.com/vXJYn8EzSB.png",
136+
"organizationId": "85460a39-6329-4cf4-a252-187ce89a3480",
137+
"createdAt": "2024-12-14T08:18:54.274Z",
138+
"updatedAt": "2024-12-14T08:18:54.274Z"
139+
}
140+
```
141+
114142
---
115143

116144
<br />

0 commit comments

Comments
 (0)