Uploads

Confirm a presigned upload and enforce the size limit

Call after the PUT. The server reads the stored size; an object over the plan limit is deleted (413). The key must be one of the caller's.

post/uploads/verify

Request

  • Base URL: https://www.sociahive.com/api/v1
  • URL: https://www.sociahive.com/api/v1/uploads/verify
  • Auth: one of:
    • API key in header X-API-Key
    • OAuth 2 (authorization code, authorization URL /api/oauth/authorize, token URL /api/oauth/token, scopes: uploads:write)

Request body

keystring required

The key returned by POST /uploads/presign.

purpose'scheduler'

scheduler when the file is post media: it is added to the media library (SCHEDULER_MEDIA_LIBRARY).

filenamestring

Display name in the media library.

Response

Upload verified

verifiedtrue required
size_bytesinteger required

The stored size, read from storage.

public_urlstring uri
asset_idstring

The media library entry, when one was recorded.

Example response

{
  "asset_id": "507f1f77bcf86cd799439011"
}

Changes

No recorded changes to this operation across all 1 revision of this API.