在 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.
Request
此方法具有下列語法。 如需了解標頭和請求正文的使用範例和描述,請參閱下列各節。
| Method | Request URI |
|---|---|
| POST | https://manage.devcenter.microsoft.com/v2.0/my/hardware/products/{productID}/submissions/{submissionID}/createpublishermetadata |
Request header
| Header | 類型 | Description |
|---|---|---|
| Authorization | String | Required. The Microsoft Entra ID access token in the form Bearer<token>. |
| accept | String | Optional. 指定內容類型。 允許的值為 “application/json” |
Request parameters
請勿提供這個方法的要求參數。
Request body
請勿提供此方法的請求正文。
Request examples
下列範例示範如何建立提交的發行者驅動程式中繼資料。
POST https://manage.devcenter.microsoft.com/v2.0/my/hardware/products/14631253285588838/submissions/1152921504621465124/createpublishermetadata HTTP/1.1
Authorization: Bearer <your access token>
Response
Response body
回應將是空的,HTTP 狀態為 202。
在此步驟之後,請等待數小時,以完成發行者驅動程式中繼資料的建立。 然後使用方法 get 提交詳細資料 來取得發行者驅動程式中繼資料檔案的連結。
Error codes
For more info, see Error codes.