This function sets (creates or updates) a userdata key/value pair within the specified scope and returns the full updated mapping.
HTTP Request was successful.
object The updated mapping of all userdata in the scope. | |
object |
whmapi1 --output=jsonpretty \ set_scoped_userdata \ scope='example_scope' \ key='theme' \ value='dark'
{- "data": {
- "theme": "dark",
- "items_per_page": "50"
}, - "metadata": {
- "command": "set_scoped_userdata",
- "reason": "OK",
- "result": 1,
- "version": 1
}
}