OCS user preferences API

The OCS user preferences API allows you to set and delete preferences from outside over pre-defined OCS calls.

The base URL for all calls to the User Preferences API is: <nextcloud_base_url>/ocs/v2.php/apps/provisioning_api/api/v1/config/users/

All calls to OCS endpoints require the OCS-APIRequest header to be set to true.

Setting a preference

field

type

Description

configValue

string

The value to set the preference to

Setting multiple preference

field

type

Description

config

array

Key value pairs of config sets with configKey (string) => configValue (string)

Deleting a preference

Deleting multiple preference

field

type

Description

configKeys

array

List of configKeys (string) to delete