Confirm a draft source archive upload
z2h_confirm_source_uploadAfter the signed PUT succeeds, verify and attach the archive to the owned draft. Confirm that the Builder accepted "I own or have the rights to sell the codebase I am about to upload."; pass ownershipAccepted=true and ownershipVersion=2026-09-27. The server records the accepted wording with the source change. Final review and publishing stay in the web wizard.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"slug": "<slug>",
"objectKey": "<objectKey>",
"contentType": "<contentType>",
"sizeBytes": "<sizeBytes>",
"ownershipAccepted": "<ownershipAccepted>",
"ownershipVersion": "<ownershipVersion>"
},
"name": "z2h_confirm_source_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | Owned listing slug from z2h_list_my_listings or z2h_create_draft_listing. | |
| objectKey | Yes | Storage key returned by z2h_request_source_upload. Pass it unchanged. | |
| 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 |
|---|---|---|---|
| ok | Yes | The archive was verified and attached, or this same archive was already attached. Publishing remains in the web wizard. |