Gitea · Example Payload

Gitea Rest Api Admin User Create Example

GitSource ControlDevOpsCI/CDCode HostingOpen SourceSelf HostedPackage RegistryIssue TrackingPull Requests

Gitea Rest Api Admin User Create Example is an example object payload from Gitea, with 3 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

operationrequestresponse

Example Payload

Raw ↑
{
  "operation": {
    "method": "POST",
    "path": "/admin/users",
    "operationId": "adminCreateUser",
    "summary": "Create a user",
    "tags": [
      "admin"
    ]
  },
  "request": {
    "headers": {
      "Authorization": "token abc123",
      "Content-Type": "application/json"
    },
    "body": {
      "username": "newuser",
      "email": "newuser@example.com",
      "password": "changeme",
      "must_change_password": true,
      "send_notify": false
    }
  },
  "response": {
    "status": 201,
    "body": {}
  }
}