attach_artifact_to_release
Attach an already-uploaded artifact (version code) to a release — the required step between upload_bundle and start_rollout. Uploading a bundle does NOT attach it, so without this the release has no artifact and start_rollout refuses. Identify the artifact by artifact_id, or give version_code and it is looked up among the app's processed artifacts. Carries the release's existing name and notes forward untouched. Reads the release back afterwards and returns attach_verified plus the attached version codes rather than assuming success. This does NOT publish — call start_rollout for that, and confirm with the user first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| track_id | Yes | Numeric track id from list_tracks (the aliases "internal"/"production" are not accepted). | |
| release_id | Yes | The release to attach to, from get_track or create_release. | |
| artifact_id | No | Optional: the artifact id to attach. Omit and pass version_code instead to have it looked up. | |
| play_app_id | Yes | Numeric Play app id from the Play Console URL (.../app/<this>/...). NOT the package name. | |
| developer_id | Yes | Numeric Play Console developer id (from the Play Console URL). | |
| version_code | No | Optional: version code of the uploaded bundle; used to find the artifact when artifact_id is omitted. | |
| google_account_email | Yes | The signed-in Google account email that owns this Play Console developer account. Call list_accounts first and confirm with the user — do not guess. | |
| notification_message | No | Short user-facing sentence for this action if the follow-up reply fails. Plain text only; do not mention template syntax or variable names. |