Skip to content
Try Gitea Cloud ☁️ for 30 days → Accelerate your Development & Deploys!
This is the documentation of the next version, still under development. See the latest release.

Block a user

PUT
/orgs/{org}/blocks/{username}
curl --request PUT \
--url https://gitea.com/api/v1/orgs/example/blocks/example \
--header 'Authorization: Basic <credentials>'
org
required
string

Name of the organization

username
required
string

Username of the user to block

note
string

Optional note for the block

APIEmpty is an empty response

APIError is error format response

message
string
url
string