Skip to content

Make a project public or private

PATCH
/api/orgs/{org}/projects/{project}/visibility
curl --request PATCH \
--url https://api-dev.wrktr.com/api/orgs/example/projects/example/visibility \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "visibility": "private" }'

Owners only. A public project’s code, history, branches, reviews and CI are readable by anyone, signed in or not.

org
required
string
project
required
string
Media typeapplication/json
object
visibility
required
string
Allowed values: private public

Project

Media typeapplication/json
object
id
required
string
org
required
string
name
required
string
remote
required
string
defaultBranch
required
string
lastPushAt
required
Any of:
string
visibility
required
string
Allowed values: private public
role
required
Any of:
string
Allowed values: owner member
forkedFrom
required
Any of:
object
org
required
string
name
required
string
Example
{
"visibility": "private",
"role": "owner"
}

Unauthorized

Media typeapplication/json
object
_tag
required
string
Allowed values: Unauthorized
message
required
string
Example
{
"_tag": "Unauthorized"
}

Forbidden

Media typeapplication/json
object
_tag
required
string
Allowed values: Forbidden
message
required
string
Example
{
"_tag": "Forbidden"
}

ProjectNotFound

Media typeapplication/json
object
_tag
required
string
Allowed values: ProjectNotFound
project
required
string
Example
{
"_tag": "ProjectNotFound"
}