Skip to main content
POST
Add Files
Add one or more files to an existing post. The share code, privacy, title and description stay the same. Adding a file to a single-file post turns it into an album.

Headers

Send the files as multipart/form-data, repeating the file field.

Behavior

  • You must own the post. A team post needs that team’s access key, and a lapsed team returns 403.
  • Requires gallery access on the key.
  • Moderated posts cannot be changed and return 403 with type moderated.
  • A post holds at most 50 files. A full post, or a request that would go past 50, returns 400.
  • New files take the post’s privacy. On a private post their URLs are signed and expire after 24 hours.
  • Videos are remuxed to MP4 and metadata is stripped exactly as in Upload Files. Videos added here do not get a thumbnail.
  • Each file is checked against your weekly quota on its own. A file that does not fit fails with type quota_exceeded.
  • Failures work like uploads: stored files come back with 200 and the rest are listed in failed. If every file fails, a one-file request returns that file’s error and a multi-file request returns 400 with type upload_failed. See Errors.
  • New files are scanned automatically. If any file, or the post’s text, is flagged, the whole post is moderated.
  • The response is the full updated post.

Examples

Responses

One of two files failed:

Errors

Authorizations

api-key
string
header
required

Your API key from an app on snipp.gg/settings/apps

Headers

include-metadata
boolean
default:false

true keeps file metadata. Omitted or false strips it.

priority
boolean
default:true

false opts videos out of priority (adaptive) streaming.

Path Parameters

code
string
required

Post share code.

Body

multipart/form-data
file
file[]
required

One or more files. Repeat the file field.

Response

Success

post
object
required
failed
object[]