确认软件包外部测试版提交Commit a package flight submission

使用此方法中的 Microsoft Store 提交 API 提交新的或更新包航班提交到合作伙伴中心。Use this method in the Microsoft Store submission API to commit a new or updated package flight submission to Partner Center. 提交操作警报合作伙伴中心已 (包括任何相关的包),上载提交数据。The commit action alerts Partner Center that the submission data has been uploaded (including any related packages). 在响应中,合作伙伴中心提交用于引入和发布的提交数据所做的更改。In response, Partner Center commits the changes to the submission data for ingestion and publishing. 提交操作成功后,在合作伙伴中心中显示的提交更改。After the commit operation succeeds, the changes to the submission are shown in Partner Center.

有关确认操作如何适应使用 Microsoft Store 提交 API 创建软件包外部测试版提交的过程的详细信息,请参阅管理软件包外部测试版提交For more information about how the commit operation fits into the process of creating a package flight submission by using the Microsoft Store submission API, see Manage package flight submissions.

先决条件Prerequisites

若要使用此方法,首先需要执行以下操作:To use this method, you need to first do the following:

请求Request

此方法具有以下语法。This method has the following syntax. 请参阅以下部分,获取标头和请求正文的使用示例和描述。See the following sections for usage examples and descriptions of the header and request body.

方法Method 请求 URIRequest URI
发布POST https://manage.devcenter.microsoft.com/v1.0/my/applications/{applicationId}/flights/{flightId}/submissions/{submissionId}/commit

请求头Request header

HeaderHeader 在任务栏的搜索框中键入Type 描述Description
授权Authorization stringstring 必需。Required. Azure AD 访问令牌的格式为 Bearer token<>。The Azure AD access token in the form Bearer <token>.

请求参数Request parameters

名称Name 在任务栏的搜索框中键入Type 描述Description
applicationIdapplicationId stringstring 必需。Required. 应用(包含要确认的软件包外部测试版提交)的应用商店 ID。The Store ID of the app that contains the package flight submission you want to commit. App Store ID 将显示在合作伙伴中心。The Store ID for the app is available in Partner Center.
flightIdflightId stringstring 必需。Required. 软件包外部测试版(包含要确认的提交)的 ID。The ID of the package flight that contains the submission to commit. 创建软件包外部测试版获取应用的软件包外部测试版请求的响应数据中包含此 ID。This ID is available in the response data for requests to create a package flight and get package flights for an app. 在合作伙伴中心创建航班,此 ID 是也可用在合作伙伴中心中的航班页的 URL。For a flight that was created in Partner Center, this ID is also available in the URL for the flight page in Partner Center.
submissionIdsubmissionId stringstring 必需。Required. 要确认的提交的 ID。The ID of the submission to commit. 此 ID 包含在创建软件包外部测试版提交请求的响应数据中。This ID is available in the response data for requests to create a package flight submission. 在合作伙伴中心创建的提交,此 ID 是也可用在合作伙伴中心中的提交页的 URL。For a submission that was created in Partner Center, this ID is also available in the URL for the submission page in Partner Center.

请求正文Request body

请勿为此方法提供请求正文。Do not provide a request body for this method.

请求示例Request example

以下示例演示了如何确认软件包外部测试版提交。The following example demonstrates how to commit a package flight submission.

POST https://manage.devcenter.microsoft.com/v1.0/my/applications/9NBLGGH4R315/flights/43e448df-97c9-4a43-a0bc-2a445e736bcd/submissions/1152921504621243649/commit HTTP/1.1
Authorization: Bearer <your access token>

响应Response

以下示例演示了成功调用此方法的 JSON 响应正文。The following example demonstrates the JSON response body for a successful call to this method. 有关响应正文中这些值的更多详细信息,请参阅以下部分。For more details about the values in the response body, see the following sections.

{
  "status": "CommitStarted"
}

响应正文Response body

ReplTest1Value 在任务栏的搜索框中键入Type 描述Description
statusstatus stringstring 提交的状态。The status of the submission. 这可以是以下值之一:This can be one of the following values:
  • None
  • CanceledCanceled
  • PendingCommitPendingCommit
  • CommitStartedCommitStarted
  • CommitFailedCommitFailed
  • PendingPublicationPendingPublication
  • PublishingPublishing
  • PublishedPublished
  • PublishFailedPublishFailed
  • PreProcessingPreProcessing
  • PreProcessingFailedPreProcessingFailed
  • 认证Certification
  • CertificationFailedCertificationFailed
  • 发行版本Release
  • ReleaseFailedReleaseFailed

错误代码Error codes

如果无法成功完成请求,该响应中会包含以下 HTTP 错误代码之一。If the request cannot be successfully completed, the response will contain one of the following HTTP error codes.

错误代码Error code 描述Description
400400 请求参数无效。The request parameters are invalid.
404404 找不到指定提交。The specified submission could not be found.
409409 找到指定的提交,但在其当前状态下,可能尚未提交或应用程序使用的合作伙伴中心功能目前不支持通过 Microsoft Store 提交 APIThe specified submission was found but it could not be committed in its current state, or the app uses a Partner Center feature that is currently not supported by the Microsoft Store submission API.