Skip to main content
PATCH
/
editUpload
Edit upload
curl --request PATCH \
  --url https://api.snipp.gg/editUpload \
  --header 'api-key: <api-key>' \
  --header 'code: <code>'
{
  "message": "Upload updated successfully.",
  "post": {
    "code": "<string>",
    "title": "<string>",
    "description": "<string>",
    "postPrivacy": "public"
  }
}
Use this endpoint to update an existing upload’s title, description, or privacy level.

Behavior

  • You must own the upload to edit it.
  • Requires an API key with upload access permission.
  • At least one of title, description, or post-privacy headers must be provided.
  • Send an empty string for title or description to clear the field.
  • title is truncated to 30 characters, description to 200 characters.

Examples

Update a post’s title and privacy:
curl -X PATCH "https://api.snipp.gg/editUpload" \
  -H "api-key: YOUR_API_KEY" \
  -H "code: AbCd1234" \
  -H "title: New title" \
  -H "post-privacy: public"
Clear a post’s description:
curl -X PATCH "https://api.snipp.gg/editUpload" \
  -H "api-key: YOUR_API_KEY" \
  -H "code: AbCd1234" \
  -H "description: "

Authorizations

api-key
string
header
required

Your API key from Snipp.gg

Headers

code
string
required

The share code of the upload to edit

title
string

New title (max 30 characters). Send empty string to clear.

Maximum string length: 30
description
string

New description (max 200 characters). Send empty string to clear.

Maximum string length: 200
post-privacy
enum<string>

New privacy level

Available options:
public,
unlisted,
private

Response

Upload updated successfully

message
string
Example:

"Upload updated successfully."

post
object