Skip to main content

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

ParameterRequiredDescription
apiKeyYesYour personal API key generated from the API Access page.
post_idYesThe ID of the post to edit. You can find the post_id from the List Scheduled Posts endpoint.
titleNoThe new title for the post (for YouTube, Reddit, and Threads posts).
contentYesThe 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 content parameter is required and will replace the existing post content.
  • The title parameter is optional. If not provided, the existing title remains unchanged.
  • Use the List Scheduled Posts endpoint to retrieve the post_id of the post you want to edit.

Result: You have successfully edited a post!