确认产品提交

在Microsoft硬件 API 中使用此方法将新提交提交到合作伙伴中心。 这将提醒合作伙伴中心你已完成产品提交,并且将针对提交开始验证。

Prerequisites

If you have not done so already, complete all the prerequisites for the Microsoft Hardware APIs before trying to use any of these methods.

提交提交的另一个先决条件是完成将驱动程序包上传到 创建新提交 时提供的 SAS URI。 有关提交作如何适应使用 Microsoft 硬件 API 提交产品应用的过程的详细信息,请参阅 管理产品提交

Request

此方法具有以下语法。 有关标头和请求正文的使用示例和说明,请参阅以下部分。

Method Request URI
POST https://manage.devcenter.microsoft.com/v2.0/my/hardware/products/{productID}/submissions/{submissionID}/commit

方法中的 productId 是提交所针对的产品。 方法中的 submssionID 是正在提交的提交。

Request header

Header 类型 Description
Authorization String Required. The Microsoft Entra ID access token in the form Bearer<token>.
accept String Optional. 指定内容类型。 允许的值为“application/json”

在标头中,设置 Content-Length: 0Content-type: application/json

Request parameters

不要为此方法提供请求参数。

Request body

请勿为此方法提供请求正文。

Request examples

以下示例演示如何提交提交。

POST https://manage.devcenter.microsoft.com/v2.0/my/hardware/products/14631253285588838/submissions/1152921504621465124/commit HTTP/1.1
Authorization: Bearer <your access token>

Response

为产品创建新提交的成功请求返回空的 202 响应。

Response body

Value 类型 Description
commitStatus 字符串 提交的当前状态。 返回的值将是 CommitPending

执行此步骤后,使用方法 获取提交详细信息 以获取提交状态。

Error codes

For more info, see Error codes.

See also

硬件仪表板 API 示例 (GitHub)