共用方式為


Test Plan Recycle Bin - Restore Deleted Test Plan

還原已刪除的測試計劃

PATCH https://dev.azure.com/{organization}/{project}/_apis/testplan/recycleBin/testplan/{planId}?api-version=7.2-preview.1

URI 參數

名稱 位於 必要 類型 Description
organization
path True

string

Azure DevOps 組織的名稱。

planId
path True

integer (int32)

要還原的測試計劃標識碼

project
path True

string

項目識別碼或項目名稱

api-version
query True

string

要使用的 API 版本。 這應該設定為 『7.2-preview.1』 以使用此版本的 API。

要求本文

名稱 類型 Description
isDeleted

boolean

指出是否應該還原已刪除的測試計劃/套件。

回應

名稱 類型 Description
200 OK

成功作業

安全性

oauth2

類型: oauth2
Flow: accessCode
授權 URL: https://app.vssps.visualstudio.com/oauth2/authorize&response_type=Assertion
權杖 URL: https://app.vssps.visualstudio.com/oauth2/token?client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer&grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer

範圍

名稱 Description
vso.test_write 授與讀取、建立和更新測試計劃、案例、結果和其他測試管理相關成品的能力。

範例

Restore test plan

範例要求

PATCH https://dev.azure.com/fabrikam/fabrikam-fiber-tfvc/_apis/testplan/recycleBin/testplan/17?api-version=7.2-preview.1

{
  "isDeleted": false
}

範例回覆

定義

TestPlanAndSuiteRestoreModel

測試計劃/套件還原要求本文參數

名稱 類型 Description
isDeleted

boolean

指出是否應該還原已刪除的測試計劃/套件。