跳转到内容
Try Gitea Cloud ☁️ for 30 days → Accelerate your Development & Deploys!
Support
This is the documentation of 22.6.1, which is no longer the latest release. See the latest release.

Block a user

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

User to block

note
string

Optional note for the block

APIEmpty is an empty response

APINotFound is a not found empty response

APIValidationError is error format response related to input validation

message
string
url
string