Skip to content

Latest commit

 

History

History
43 lines (38 loc) · 3.48 KB

getserverpreferencesresponse.md

File metadata and controls

43 lines (38 loc) · 3.48 KB

GetServerPreferencesResponse

Example Usage

import { GetServerPreferencesResponse } from "@lukehagar/plexjs/sdk/models/operations";

let value: GetServerPreferencesResponse = {
  contentType: "<value>",
  statusCode: 415,
  rawResponse: new Response("{\"message\": \"hello world\"}", {
    headers: { "Content-Type": "application/json" },
  }),
  object: {
    mediaContainer: {
      size: 161,
      setting: [
        {
          id: "EnableDatabaseTrace",
          label: "",
          summary: "",
          type: "bool",
          default: false,
          value: false,
          hidden: true,
          advanced: false,
          group: "",
          enumValues: "1:admin only|2:everyone",
        },
      ],
    },
  },
};

Fields

Field Type Required Description
contentType string ✔️ HTTP response content type for this operation
statusCode number ✔️ HTTP response status code for this operation
rawResponse Response ✔️ Raw HTTP response; suitable for custom response parsing
object operations.GetServerPreferencesResponseBody Server Preferences