Edit a post
const url = 'https://api.gampeon.com/v1/posts/1';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"body":"example","audience":"public","commentMode":"everyone"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://api.gampeon.com/v1/posts/1 \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "body": "example", "audience": "public", "commentMode": "everyone" }'Text, audience or who can comment. A new text sets editedAt, and only newly mentioned accounts are notified. Photos and shares stay as they are.
Not available with access tokens.
Rate limit: 120 changes per hour per account.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Post ID
Request Bodyrequired
Section titled “Request Bodyrequired”object
Responses
Section titled “Responses”Saved
object
Plain text, up to 1,000 characters. Can be empty for photo and GIF posts and shares.
Unix time in milliseconds
Who can see it. Studio and game posts are always public
Up to 4 photos
object
Image path relative to the API (/v1/media/…)
object
Host without www.
Page title (og:title or
Mentioned handles that exist
Who can comment, as it applies (under 16: at most friends)
Pinned to the top of the timeline
object
All reactions together
Up to three most frequent reactions, most frequent first (for the icons)
Number per reaction, only reactions that occur
object
All reactions (older field)
Whether you reacted (older field)
The two newest top-level comments, oldest first
object
Plain text, up to 1,000 characters. Can be empty if there is a GIF
Unix time in milliseconds
Mentioned handles that exist (@handle in the text)
object
All reactions together
Up to three most frequent reactions, most frequent first (for the icons)
Number per reaction, only reactions that occur
object
Replies (top-level comments only)
You wrote it or manage the post
Whether you may delete it
Example
{ "author": { "type": "user" }, "audience": "public", "commentMode": "everyone", "reactions": { "top": [ "like" ] }, "myReaction": "like", "latestComments": [ { "reactions": { "top": [ "like" ] }, "myReaction": "like" } ]}Error codes: invalid_field, too_many_links
object
Machine-readable error code, for example not_found or rate_limited.
Human-readable detail. Only present for some errors.
Example generated
{ "error": "example", "message": "example"}Error codes: unauthorized
object
Machine-readable error code, for example not_found or rate_limited.
Human-readable detail. Only present for some errors.
Example generated
{ "error": "example", "message": "example"}Error codes: token_not_allowed, forbidden
object
Machine-readable error code, for example not_found or rate_limited.
Human-readable detail. Only present for some errors.
Example generated
{ "error": "example", "message": "example"}Error codes: not_found
object
Machine-readable error code, for example not_found or rate_limited.
Human-readable detail. Only present for some errors.
Example generated
{ "error": "example", "message": "example"}Error codes: post_removed
object
Machine-readable error code, for example not_found or rate_limited.
Human-readable detail. Only present for some errors.
Example generated
{ "error": "example", "message": "example"}Limit: 120 changes per hour per account. Error codes: rate_limited
object
Machine-readable error code, for example not_found or rate_limited.
Human-readable detail. Only present for some errors.
Example generated
{ "error": "example", "message": "example"}