Skip to content

Commit 9aff9d6

Browse files
committed
feat: remove curl request
1 parent 2c2af0a commit 9aff9d6

File tree

1 file changed

+6
-45
lines changed

1 file changed

+6
-45
lines changed

pages/public-api.mdx

Lines changed: 6 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,12 @@ Payload:
164164
}
165165
```
166166

167+
Response:
168+
169+
```json
170+
[{"postId":"POST_ID","integration":"INTEGRATION_ID"}]
171+
```
172+
167173
<iframe style={{width: "100%", height: "680px", zoom: 0.8}} src="https://platform.postiz.com/modal/dark/all"></iframe>
168174

169175
### Request
@@ -204,51 +210,6 @@ Payload:
204210
| label | string | Yes | Tag label |
205211

206212

207-
curl:
208-
```
209-
curl -X POST \
210-
https://POSTIZ_URL/public/v1/posts \
211-
-H 'Authorization: API_KEY' \
212-
-H 'Content-Type: application/json' \
213-
-d '{
214-
"type": "draft",
215-
"order": "",
216-
"shortLink": true,
217-
"inter": 0,
218-
"date": "2025-05-07T12:00:00.000Z",
219-
"tags": [
220-
{
221-
"value": "",
222-
"label": ""
223-
}
224-
],
225-
"posts": [
226-
{
227-
"integration": {
228-
"id": "INTEGRATION_ID"
229-
},
230-
"value": [
231-
{
232-
"content": "content",
233-
"id": "",
234-
"image": []
235-
}
236-
],
237-
"group": "",
238-
"settings": {}
239-
}
240-
]
241-
}'
242-
```
243-
244-
Response:
245-
246-
```json
247-
[{"postId":"POST_ID","integration":"INTEGRATION_ID"}]
248-
```
249-
250-
---
251-
252213
<br />
253214
### Delete a post
254215

0 commit comments

Comments
 (0)