Method: edits.tracks.create
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
HTTP 요청
POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/edits/{editId}/tracks
URL은 gRPC 트랜스코딩 문법을 사용합니다.
경로 매개변수
매개변수 |
packageName |
string
필수 항목입니다. 앱의 패키지 이름입니다.
|
editId |
string
필수 항목입니다. 수정사항의 식별자입니다.
|
요청 본문
요청 본문에 TrackConfig
의 인스턴스가 포함됩니다.
응답 본문
성공한 경우 응답 본문에 새로 생성된 Track
의 인스턴스가 포함됩니다.
승인 범위
다음 OAuth 범위가 필요합니다.
https://www.googleapis.com/auth/androidpublisher
TrackConfig
필드 |
track |
string
필수 항목입니다. 새 트랙의 식별자입니다. 기본 트랙의 경우 이 필드는 트랙 별칭으로만 구성됩니다. 폼 팩터 트랙에는 식별자로 특수한 접두사가 있습니다(예: wear:production , automotive:production ). 이 접두사는 기본 트랙이 아닌 경우 formFactor 필드의 값과 일치해야 합니다. 트랙 이름 더보기
|
type |
enum (TrackType )
필수 항목입니다. 새 트랙의 유형입니다. 현재 유일하게 지원되는 값은 비공개 테스트입니다.
|
formFactor |
enum (FormFactor )
필수 항목입니다. 새 트랙의 폼 팩터입니다. 기본값은 기본 트랙입니다.
|
TrackType
열거형 |
TRACK_TYPE_UNSPECIFIED |
대체 값이며 사용하지 마세요. |
CLOSED_TESTING |
비공개 테스트 트랙 |
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-26(UTC)
[null,null,["최종 업데이트: 2025-07-26(UTC)"],[[["\u003cp\u003eThis operation creates a new track for an Android application using the provided configurations.\u003c/p\u003e\n"],["\u003cp\u003eIt requires a \u003ccode\u003ePOST\u003c/code\u003e request to a specific URL, including the package name and edit ID.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must contain the new track's configuration, such as its identifier, type, and form factor.\u003c/p\u003e\n"],["\u003cp\u003eSuccessful execution results in the response body containing the newly created track details.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization with the \u003ccode\u003ehttps://www.googleapis.com/auth/androidpublisher\u003c/code\u003e scope is necessary.\u003c/p\u003e\n"]]],["This document outlines how to create a new track using the Android Publisher API. The `POST` request is sent to `https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/edits/{editId}/tracks`, with the package name and edit ID as path parameters. The request body requires a `TrackConfig` instance, defining the track's `track`, `type` (currently only `CLOSED_TESTING` is supported), and `formFactor` (default, `WEAR`, or `AUTOMOTIVE`). The response will be a newly created `Track` instance. Authorization requires the `https://www.googleapis.com/auth/androidpublisher` scope.\n"],null,["# Method: edits.tracks.create\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [TrackConfig](#TrackConfig)\n - [JSON representation](#TrackConfig.SCHEMA_REPRESENTATION)\n- [TrackType](#TrackType)\n- [FormFactor](#FormFactor)\n- [Try it!](#try-it)\n\nCreates a new track.\n\n### HTTP request\n\n`POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/edits/{editId}/tracks`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|---------------|---------------------------------------------|\n| `packageName` | `string` Required. Package name of the app. |\n| `editId` | `string` Required. Identifier of the edit. |\n\n### Request body\n\nThe request body contains an instance of [TrackConfig](/android-publisher/api-ref/rest/v3/edits.tracks/create#TrackConfig).\n\n### Response body\n\nIf successful, the response body contains a newly created instance of [Track](/android-publisher/api-ref/rest/v3/edits.tracks#Track).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/androidpublisher`\n\nTrackConfig\n-----------\n\nConfigurations of the new track.\n\n| JSON representation |\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"track\": string, \"type\": enum (/android-publisher/api-ref/rest/v3/edits.tracks/create#TrackType), \"formFactor\": enum (/android-publisher/api-ref/rest/v3/edits.tracks/create#FormFactor) } ``` |\n\n| Fields ||\n|--------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `track` | `string` Required. Identifier of the new track. For default tracks, this field consists of the track alias only. Form factor tracks have a special prefix as an identifier, for example `wear:production`, `automotive:production`. This prefix must match the value of the `formFactor` field, if it is not a default track. [More on track name](https://developers.google.com/android-publisher/tracks#ff-track-name) |\n| `type` | `enum (`[TrackType](/android-publisher/api-ref/rest/v3/edits.tracks/create#TrackType)`)` Required. Type of the new track. Currently, the only supported value is closedTesting. |\n| `formFactor` | `enum (`[FormFactor](/android-publisher/api-ref/rest/v3/edits.tracks/create#FormFactor)`)` Required. Form factor of the new track. Defaults to the default track. |\n\nTrackType\n---------\n\nAvailable types for the new track.\n\n| Enums ||\n|--------------------------|-----------------------------|\n| `TRACK_TYPE_UNSPECIFIED` | Fallback value, do not use. |\n| `CLOSED_TESTING` | Closed testing track. |\n\nFormFactor\n----------\n\nAvailable form factors for the new track.\n\n| Enums ||\n|---------------------------|-------------------------------|\n| `FORM_FACTOR_UNSPECIFIED` | Fallback value, do not use. |\n| `DEFAULT` | Default track. |\n| `WEAR` | Wear form factor track. |\n| `AUTOMOTIVE` | Automotive form factor track. |"]]