cPanel UserData API
Hello!
Can I use the UserData API to store metadata that is not related to cPanel? For example, the contract code for this cPanel user in my invoicing system.
-
Hey there! Can you let me know specifically which API call you're referring to? Is it this one? https://api.docs.cpanel.net/openapi/cpanel/operation/set_scoped_userdata/
0 -
Hello! Yes, that one.
0 -
It looks like you can use that to create any custom values you wish. Here is the test I just ran, which worked fine:
uapi --user=username UserData set_scoped_userdata scope=random_account_info key=name value=Username
so I'd say try it and see if it will store what you expect.
0
Please sign in to leave a comment.
Comments
3 comments