共用方式為


Tags - Update

更新專案的標記。

PATCH https://dev.azure.com/{organization}/{project}/_apis/wit/tags/{tagIdOrName}?api-version=7.2-preview.1

URI 參數

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

string

Azure DevOps 組織的名稱。

project
path True

string

專案識別碼或專案名稱

tagIdOrName
path True

string

標籤識別碼或標籤名稱。

api-version
query True

string

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

要求本文

名稱 類型 Description
id

string

lastUpdated

string

name

string

url

string

回應

名稱 類型 Description
200 OK

WorkItemTagDefinition

成功作業

安全性

oauth2

Type: oauth2
Flow: accessCode
Authorization URL: https://app.vssps.visualstudio.com/oauth2/authorize&response_type=Assertion
Token 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

Scopes

名稱 Description
vso.work_write 授與讀取、建立及更新工作專案和查詢、更新面板中繼資料、讀取區域和反復專案路徑的其他工作專案追蹤相關中繼資料、執行查詢,以及透過服務勾點接收工作專案事件通知的能力。

範例

Update a work item tag

Sample Request

PATCH https://dev.azure.com/fabrikam/Fabrikam-Fiber-Git/_apis/wit/tags/18090594-b371-4140-99d2-fc93bcbcddec?api-version=7.2-preview.1

{
  "id": "18090594-b371-4140-99d2-fc93bcbcddec",
  "name": "my-first-tag",
  "url": "http://dev.azure.com/fabrikam/Fabrikam-Fiber-Git/_apis/wit/tags/18090594-b371-4140-99d2-fc93bcbcddec?api-version=5.1-preview"
}

Sample Response

定義

WorkItemTagDefinition

名稱 類型 Description
id

string

lastUpdated

string

name

string

url

string