cPanel WHM icon

cPanel WHM

Full cPanel WHM API — all 622 operations across Accounts, DNS, Mail, SSL, Backups, Databases and more

Actions262

Account → Set scoped userdata

AI-generated

Summary

Set or update user data within a specified scope for a cPanel WHM account by providing either a full JSON string or a single key-value pair.

Inputs

  • Scope (required) — The name of the scope to modify in the user's scoped data.
  • Json — A JSON string representing the user data to save to the specified scope. Cannot be used with 'Key' or 'Value'.
  • Key — The specific userdata key to set within the scope. Cannot be used with 'Json'.
  • Value — The value to assign to the specified key. Cannot be used with 'Json'.

Output shape

a single API response object containing the server's confirmation or error message about the scoped userdata update operation

The operation accepts either a complete JSON string representing scoped userdata or a single key/value pair; using 'Json' is mutually exclusive with using 'Key' and 'Value'. The response includes status and any error messages from the WHM API.

Links

Discussion