PeerTube · Example Payload

Updateclientinterfacelanguage

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

Client Config

Updateclientinterfacelanguage 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": "updateClientInterfaceLanguage",
  "method": "POST",
  "path": "/api/v1/client-config/update-interface-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, or `null` to clear the preference",
          "example": "en-US"
        }
      },
      "required": [
        "language"
      ]
    },
    "example": {}
  },
  "responses": {
    "204": {
      "description": "successful operation",
      "examples": {}
    }
  }
}