Cmdlets for Bitbucket

Build 24.0.9060

Update-Bitbucket Cmdlet

Parameters   Output Objects  

Updates Bitbucket data.

Syntax

Update-Bitbucket [parameters]

Remarks

The Update-Bitbucket cmdlet allows you to use a syntax similar to SQL UPDATE statements to update Bitbucket data.

$conn = Connect-Bitbucket -Workspace 'myworkspaceslug' -Schema 'Information'
Update-Bitbucket -Connection $conn -Table "Issues" -Columns @("ContentRaw") -Values @("John Doe") -Id "1"
The Where parameter can also be used to specify the primary key of the table:
Update-Bitbucket -Connection $conn -Table "Issues" -Columns @("ContentRaw") -Values @("John Doe") -Where "Id = '1'"
The primary key can also be passed to the cmdlet along the pipeline:
Select-Bitbucket -Connection $conn -Table Issues -Where "ContentRaw = 'Bug'" | Update-Bitbucket -Columns @("ContentRaw") -Values @("Bug 2")

Copyright (c) 2024 CData Software, Inc. - All rights reserved.
Build 24.0.9060