PeerTube · Example Payload

Requestregistration

Signup has to be enabled and require approval on the instance

Register

Requestregistration is an example object payload from PeerTube, with 9 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

operationIdmethodpathsummarydescriptiontagsparametersrequestBodyresponses

Example Payload

Raw ↑
{
  "operationId": "requestRegistration",
  "method": "POST",
  "path": "/api/v1/users/registrations/request",
  "summary": "Request registration",
  "description": "Signup has to be enabled and require approval on the instance",
  "tags": [
    "Register"
  ],
  "parameters": [],
  "requestBody": {
    "contentType": "application/json",
    "schema": {
      "$ref": "#/components/schemas/UserRegistrationRequest"
    },
    "example": {}
  },
  "responses": {
    "200": {
      "description": "successful operation",
      "examples": {}
    },
    "400": {
      "description": "request error or signup approval is not enabled on the instance",
      "examples": {}
    },
    "403": {
      "description": "user registration is not enabled, user limit is reached, registration is not allowed for the ip or blocked by a plugin",
      "examples": {}
    },
    "409": {
      "description": "a user or registration with this username, channel name or email already exists",
      "examples": {}
    }
  }
}