Trying to update an organization's repo external wiki

With Gitea version 1.23.8 I am trying to update an organization’s repo to use an external wiki URL.

Can anyone else confirm if they’ve got this working? I’ve seen one post on the forum that says it was broken in a previous version, and I just want to confirm if it’s still broken in the latest version.

$Owner = “Test-Organization”
$Repo = “test-repo-wiki”
$Token = “<api_key>”
$GiteaUrl = “http://localhost:3000/api/v1”
$ExternalWikiUrl = “https://test.com/test”

$Body = @{
has_wiki = $false
external_wiki = @{
external_wiki_url = $ExternalWikiUrl
}
} | ConvertTo-Json -Depth 3

Invoke-RestMethod -Uri “$GiteaUrl/repos/$Owner/$Repo”
-Method Patch -Headers @{ Authorization = “token $Token” }
-ContentType “application/json” `
-Body $Body