public/api-v2/system/Invoke-JiraSetApplicationProperty.ps1
#https://developer.atlassian.com/cloud/jira/platform/rest/v2/#api-rest-api-2-application-properties-id-put function Invoke-JiraSetApplicationProperty { [CmdletBinding()] param ( # ID of the property to set [Parameter(Mandatory,Position=0)] [string] $PropertyId, # The new value for the property [Parameter(Mandatory,Position=1)] [string] $Value, # The JiraContext object to use for the request [Parameter()] [JiraContext] $JiraContext ) process { $functionPath = "/rest/api/2/application-properties/$PropertyId" $verb = "PUT" $body = New-Object RestMethodJsonBody @{ id = $PropertyId value = $Value } $method = New-Object BodyRestMethod @($functionPath,$verb,$body) $method.Invoke($JiraContext) } } |