Method: edits.expansionfiles.patch
Vá cấu hình tệp mở rộng của APK để tham chiếu tệp mở rộng của một APK khác. Để thêm tệp mở rộng mới, hãy sử dụng phương thức expansionfiles.upload.
Yêu cầu HTTP
PATCH https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}
URL sử dụng cú pháp Chuyển mã gRPC.
Tham số đường dẫn
Tham số |
packageName |
string
Tên gói của ứng dụng.
|
editId |
string
Giá trị nhận dạng của nội dung chỉnh sửa.
|
apkVersionCode |
integer
Mã phiên bản của tệp APK có cấu hình tệp mở rộng đang được đọc hoặc sửa đổi.
|
expansionFileType |
enum (ExpansionFileType )
Loại tệp của cấu hình tệp mở rộng đang được cập nhật.
|
Nội dung yêu cầu
Nội dung yêu cầu chứa một bản sao của ExpansionFile
.
Nội dung phản hồi
Nếu thành công, nội dung phản hồi sẽ chứa một phiên bản của ExpansionFile
.
Phạm vi uỷ quyền
Yêu cầu phạm vi OAuth sau:
https://www.googleapis.com/auth/androidpublisher
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2024-12-17 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2024-12-17 UTC."],[[["Patches an APK's expansion file configuration to reference another APK's expansion file, allowing you to link expansion files between APKs."],["Utilizes an HTTP PATCH request with specific path parameters to identify the target application, edit, APK version, and expansion file type."],["Requires an ExpansionFile object in the request body to specify the configuration details and returns the updated ExpansionFile in the response."],["To add a new expansion file instead of patching an existing one, you should use the expansionfiles.upload method."],["Needs authorization with the `https://www.googleapis.com/auth/androidpublisher` scope for access."]]],["This API allows patching an APK's expansion file configuration to point to another APK's expansion file. The HTTP request uses `PATCH` to update at a specific URL with path parameters: `packageName`, `editId`, `apkVersionCode`, and `expansionFileType`. The request and response bodies use the `ExpansionFile` format. The process needs authorization with the `https://www.googleapis.com/auth/androidpublisher` OAuth scope. New expansion files must be added via the `expansionfiles.upload` method.\n"]]