Verify and register uploaded bytes

Supply the original name, MIME type, size, and returned id and storageKey. Verifies stored size and project ownership. Retrying the same id is safe and does not create another catalog entry.

put/api/projects/{id}/files/uploads

Request

  • Base URL: https://editor.pascal.app
  • URL: https://editor.pascal.app/api/projects/{id}/files/uploads
  • Auth: HTTP bearer

Request body

namestring required
mimeTypestring required
sizeinteger required
type'scan' | 'guide' | 'image' | 'document' | 'other'
source'editor' | 'ai_chat' | 'api' | 'import'
idstring required
storageKeystring required

Response

Project file metadata and download URL

Changes

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