PeerTube · Example Payload

Updateclientlanguage

Set a cookie so that the next time the client refreshes the HTML of the web interface, PeerTube uses the selected language.

Client Config

Updateclientlanguage 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": "updateClientLanguage",
  "method": "POST",
  "path": "/api/v1/client-config/update-language",
  "summary": "Update client language",
  "description": "Set a cookie so that the next time the client refreshes the HTML of the web interface, PeerTube uses the selected language.",
  "tags": [
    "Client Config"
  ],
  "parameters": [],
  "requestBody": {
    "contentType": "application/json",
    "schema": {
      "type": "object",
      "properties": {
        "language": {
          "type": "string",
          "nullable": true,
          "description": "Language code to set",
          "example": "en-US"
        }
      },
      "required": [
        "language"
      ]
    },
    "example": {}
  },
  "responses": {
    "204": {
      "description": "successful operation",
      "examples": {}
    }
  }
}