Preferences

Create a server preference (Admin)

Changed on

Add a new preference to your server

put/preferences

Request

  • Base URL
    https://develop.ampache.dev/rest/8/json
  • URL
    https://develop.ampache.dev/rest/8/json/preferences
  • Auth
    • HTTP bearer
    • or API key in header auth
    • or API key in query parameter auth

Query parameters

filterstring

Preference name

type'boolean' | 'integer' | 'string' | 'special'
defaultstring

Default value (string or integer)

categorystring

interface,internal,options,playlist,plugins,streaming

descriptionstring
subcategorystring

Request body

filterstring required

Preference name

type'boolean' | 'integer' | 'string' | 'special' required
defaultstring required

Default value (string or integer)

categorystring required

interface,internal,options,playlist,plugins,streaming

descriptionstring
subcategorystring

Response

Created

successstring

Changes

    • info

      api operation id preferenceCreate was added

    • info

      added optional request body

    • info

      the query request parameter category became optional

    • info

      the query request parameter default became optional

    • info

      the query request parameter filter became optional

    • info

      the query request parameter type became optional

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status