Request a draft source archive upload
z2h_request_source_uploadFor an owned draft, get a short-lived signed archive URL. Ask the Builder to explicitly accept this exact statement: "I own or have the rights to sell the codebase I am about to upload." Pass ownershipAccepted=true and ownershipVersion=2026-09-27 only after they accept. Returns signedUrl for the archive PUT, objectKey for confirmation, and contentType for the upload header. Keep signedUrl private. PUT up to 100 MB to signedUrl, then call z2h_confirm_source_upload. This does not publish.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | Owned listing slug from z2h_list_my_listings or z2h_create_draft_listing. | |
| sizeBytes | Yes | Exact archive size in bytes. Must match the uploaded file. | |
| contentType | Yes | Archive MIME type, used unchanged for PUT and confirmation. | |
| ownershipVersion | Yes | Version of the ownership statement explicitly accepted by the Builder. | |
| ownershipAccepted | Yes | True only after the Builder explicitly accepts the statement in this tool description. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| objectKey | Yes | Storage key to pass unchanged to z2h_confirm_source_upload. | |
| signedUrl | Yes | Short-lived signed PUT URL. Keep it private and upload the archive before confirmation. | |
| contentType | Yes | Content-Type to use for the archive PUT and confirmation. |