PeerTube · Schema

AddUser

VideoDecentralizedFederationOpen SourceActivityPubSelf-HostedStreaming

Properties

Name Type Description
username object
password object
email string The user email
videoQuota integer The user video quota in bytes
videoQuotaDaily integer The user daily video quota in bytes
channelName object
role object
adminFlags object
View JSON Schema on GitHub

JSON Schema

AddUser.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/peertube/main/json-schema/AddUser.json",
  "title": "AddUser",
  "properties": {
    "username": {
      "$ref": "#/components/schemas/username"
    },
    "password": {
      "$ref": "#/components/schemas/password"
    },
    "email": {
      "type": "string",
      "format": "email",
      "description": "The user email"
    },
    "videoQuota": {
      "type": "integer",
      "description": "The user video quota in bytes",
      "example": -1
    },
    "videoQuotaDaily": {
      "type": "integer",
      "description": "The user daily video quota in bytes",
      "example": -1
    },
    "channelName": {
      "$ref": "#/components/schemas/usernameChannel"
    },
    "role": {
      "$ref": "#/components/schemas/UserRole"
    },
    "adminFlags": {
      "$ref": "#/components/schemas/UserAdminFlags"
    }
  },
  "required": [
    "username",
    "password",
    "email",
    "role"
  ]
}