Edit Post
Overview
The Edit Post endpoint allows you to edit the title and content/caption of an existing post. This is useful for updating a post's details before it gets published.
Base URL:
https://www.oneupapp.io
Endpoint
POST /api/editpost
Request Parameters
| Parameter | Required | Description |
|---|---|---|
apiKey | Yes | Your personal API key generated from the API Access page. |
post_id | Yes | The ID of the post to edit. You can find the post_id from the List Scheduled Posts endpoint. |
title | No | The new title for the post (for YouTube, Reddit, and Threads posts). |
content | Yes | The new content/caption for the post. |
Sample Request
curl --location --request POST \
"https://www.oneupapp.io/api/editpost" \
--header "Content-Type: application/json" \
--data "{
\"apiKey\": \"YOUR_API_KEY\",
\"post_id\": 48185807,
\"title\": \"my title\",
\"content\": \"this is the new content edited\"
}"
Sample Response
{
"message": "Post updated successfully"
}
Tips & Notes
- Only scheduled posts can be edited. Published or failed posts cannot be edited via this endpoint.
- The
contentparameter is required and will replace the existing post content. - The
titleparameter is optional. If not provided, the existing title remains unchanged. - Use the List Scheduled Posts endpoint to retrieve the
post_idof the post you want to edit.
✅ Result: You have successfully edited a post!