删除软件包外部测试版提交Delete a package flight submission

在 Microsoft Store 提交 API 中使用此方法,可删除现有软件包外部测试版提交。Use this method in the Microsoft Store submission API to delete an existing package flight submission.

必备条件Prerequisites

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

  • 如果尚未开始操作,请先完成 Microsoft Store 提交 API 的所有先决条件If you have not done so already, complete all the prerequisites for the Microsoft Store submission API.
  • 获取 Azure AD 访问令牌,以供在此方法的请求标头中使用。Obtain an Azure AD access token to use in the request header for this method. 获取访问令牌后,在它到期前,你有 60 分钟的使用时间。After you obtain an access token, you have 60 minutes to use it before it expires. 该令牌到期后,可以获取新的令牌。After the token expires, you can obtain a new one.

请求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
DELETEDELETE https://manage.devcenter.microsoft.com/v1.0/my/applications/{applicationid}/flights/{flightId}/submissions/{submissionId}

请求头Request header

标头Header 类型Type 描述Description
授权Authorization 字符串string 必需。Required. Azure AD 访问令牌的格式为 Bearer <token> 。The Azure AD access token in the form Bearer <token>.

请求参数Request parameters

名称Name 类型Type 描述Description
applicationIdapplicationId 字符串string 必需。Required. 应用(包含要删除的软件包外部测试版提交)的应用商店 ID。The Store ID of the app that contains the package flight submission you want to delete. 有关应用商店 ID 的详细信息,请参阅查看应用标识详细信息For more information about the Store ID, see View app identity details.
flightIdflightId 字符串string 必需。Required. 软件包外部测试版(包含要删除的提交)的 ID。The ID of the package flight that contains the submission to delete. 创建软件包外部测试版获取应用的软件包外部测试版请求的响应数据中包含此 ID。This ID is available in the response data for requests to create a package flight and get package flights for an app. 对于在合作伙伴中心创建的航班,还可以在合作伙伴中心的 "航班" 页的 URL 中使用此 ID。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 字符串string 必需。Required. 要删除的提交的 ID。The ID of the submission to delete. 此 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 delete a submission for a package flight.

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

响应Response

如果成功,此方法会返回空的响应正文。If successful, this method returns an empty response body.

错误代码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 提交 API 支持The specified submission was found but it could not be deleted in its current state, or the app uses a Partner Center feature that is currently not supported by the Microsoft Store submission API.