# Can't set external wiki url

**URL:** <https://forum.gitea.com/t/cant-set-external-wiki-url/2987>\
**Category:** Install/Maintain/Configure\
**Created:** [February 20, 2021, 9:10pm UTC](https://forum.gitea.com/t/cant-set-external-wiki-url/2987 "2021-02-20T21:10:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fi-do](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/fi-do/32/1161_2.png) [@fi-do](https://forum.gitea.com/u/fi-do)\
**Post date:** [February 20, 2021, 9:10pm UTC](https://forum.gitea.com/t/cant-set-external-wiki-url/2987/1 "2021-02-20T21:10:29Z")

</div>

Hey,  
I was trying to set an external wiki url for my repository via api. Using Swagger the following curl command should edit my repository:

`curl -X PATCH "http://localhost:3000/api/v1/repos/gitea/test" -H "accept: application/json" -H "authorization: Basic replace=" -H "Content-Type: application/json" -d "{ \"external_wiki\": { \"external_wiki_url\": \"https://test3.de\" }}"`

But nothing changes. When navigating via browser to `http://localhost:3000/gitea/test/settings`, I’m able to change the external wiki uri manually.

//Edit:  
Using gitea api: 1.1.1, gitea version: 1.13.0

Can you give me a hint, how I can change my external wiki url via api?

Thanks,  
fi-do

---

<div class="post-metadata">

**Author:** ![awestwell](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/awestwell/32/6920_2.png) [@awestwell](https://forum.gitea.com/u/awestwell)\
**Post date:** [June 4, 2025, 1:43am UTC](https://forum.gitea.com/t/cant-set-external-wiki-url/2987/2 "2025-06-04T01:43:51Z")

</div>

I am trying the exact same thing with Gitea version 1.23.8. Can anyone else confirm if this defect still exists? Below is a Power Script that I wrote for testing this. It does return, but it never seems to set the external Wiki. I am trying to do this for an organization repository.

$Owner = “Test-Organization”  
$Repo = “test-repo-wiki”  
$Token = “\<api\_key\>”  
$GiteaUrl = “[http://localhost:3000/api/v1](http://localhost:3000/api/v1)”  
$ExternalWikiUrl = “[https://test.com/test](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

Are there other settings that I need to make sure are set? What am I missing?
