# Save NVData data to file

This function saves its data to an NVData file on disk. cPanel
NVData is a per-account configuration storage mechanism that you can use to
maintain persistent cPanel & WHM settings across multiple sessions. This includes
custom settings for your own themes and plugins.

Note:

NVData keys and values are limited to 128 and 2048 bytes, respectively.

Endpoint: POST /Personalization/set
Version: 11.136.0.19
Security: BasicAuth

## Request fields (application/json):

  - `personalization` (object)
    The NVData keys and values to update.
    Example: {"coffee":"hot","milk":"cold"}

## Response 200 fields (application/json):

  - `apiversion` (integer)
    The version of the API.
    Example: 3

  - `func` (string)
    The name of the method called.
    Example: "set"

  - `module` (string)
    The name of the module called.
    Example: "Personalization"

  - `result` (object)

  - `result.data` (object)
    Example: {"coffee":{"reason":"OK","success":1,"value":"hot"},"milk":{"reason":"OK","success":1,"value":"cold"}}

  - `result.data.personalization` (object)
    The saved NVData information stored on the server.

Note:

You set this return's name based on the keys that you provide in the personalization parameter.

  - `result.errors` (array,null)
    List of errors if the API failed.

  - `result.messages` (array,null)
    List of messages generated by the API.

  - `result.metadata` (object)

  - `result.status` (integer)
    - 1 — Success
- 0 — Failed: Check the errors field for more details.
    Enum: 0, 1

  - `result.warnings` (array,null)
    List of warnings generated by the API. Warnings describe non-critical failures or other problematic conditions noted while running a API.


