Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set organisation visibility from API #7023

Closed
2 of 7 tasks
agp8x opened this issue May 23, 2019 · 1 comment · Fixed by #7028
Closed
2 of 7 tasks

Set organisation visibility from API #7023

agp8x opened this issue May 23, 2019 · 1 comment · Fixed by #7028
Labels
modifies/api This PR adds API routes or modifies them

Comments

@agp8x
Copy link

agp8x commented May 23, 2019

  • Gitea version (or commit ref): 799f5e0
  • Git version: 2.20.1
  • Operating system: gitea/gitea:1.8 (docker)
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

It is currently not possible to set the visibilty of an organisation from API calls (especially /orgs). The visibility option is not documented in swagger; I tried sending a "visibility" field with "private", but it did not work.

curl -X POST "http://<gitea>/api/v1/orgs?access_token=<my_token>" -H  "accept: application/json" -H  "Content-Type: application/json" -d "{  \"username\": \"newOrg\",\"visibility\": \"private\"}"
@richmahn
Copy link
Contributor

Fixing this in the POST and PATCH endpoints for the org API.

richmahn added a commit to richmahn/gitea that referenced this issue May 24, 2019
@lunny lunny added the modifies/api This PR adds API routes or modifies them label May 24, 2019
jeffliu27 pushed a commit to jeffliu27/gitea that referenced this issue Jul 18, 2019
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
modifies/api This PR adds API routes or modifies them
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants