AndrewPla / TOPdeskPS

PowerShell module to interact with the TOPdesk API
MIT License
30 stars 12 forks source link

Update Set-TdChange.ps1 #111

Closed aukebergsma closed 3 years ago

aukebergsma commented 3 years ago

Fix according to TOPdesk documentation:

For example, the following now works:

$changeObject = [PSCustomObject]@{ op = 'replace' path = '/object' value = $tdObjectId } $body = @($changeObject) $dummy = Set-TdChange -ChangeId $tdChange.number -BodyInput $body

Requirements

Description of the Change

[ We must be able to understand the design of your change from this description. If we cannot get a good idea of what the code will be doing from the description here, the pull request may be closed at the maintainers' discretion. Keep in mind that the maintainer reviewing this PR may not be familiar with or have worked with the code here recently, so please walk us through the concepts. ]

Testing

[ Please describe the testing you have performed ]

Associated/Resolved Issues

[ Enter any applicable issues here ]

Note: By creating a pull request, you are expected to comply with this project's Code of Conduct.