Initialize document upload
air_upload_document_initStart a presigned document upload for a project. Get an uploadUrl and s3Key, PUT the file bytes, then complete the upload.
Instructions
Start a presigned upload: returns uploadUrl and s3Key. PUT the raw file bytes to uploadUrl with the same contentType you passed here and no other headers — the URL signs content-type and host only, so any x-amz-* header (notably the checksum headers AWS SDKs add by default) invalidates the signature. Then call air_upload_document_complete with the returned s3Key. Requires projects:write.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | Original filename including extension | |
| projectPid | Yes | ||
| contentType | Yes | MIME type, e.g. application/pdf |