Skip to main content

UAPI Email::set_always_accept documentation

Comments

5 comments

  • cPRex Jurassic Moderator
    Hey there! You're completely right, and we have this resolved in our latest documentation. The "documentation" site is actually two versions old in relation to the API, and the new stuff is here:
    0
  • swbrains
    Thanks! I always end up Google-ing "API cpanel __________" when I need to look up a function for a particular purpose, and it seems I've usually landed on the old API site It might be helpful if it could redirect to the new one as I don't visit it frequently enough to remember there's a newer version. One thing I noticed on the new page is the CLI and URL examples don't specify any parameters other than . With a function called set_always_accept, I would have expected it to require a setting/value to be set -- either or , but didn't see them being set in the example. I see that other information is returned by the function, but it's unclear if the example is being used to simply query the MX information for the domain, or what the purpose of the function is when only the parameter is specified with no "action." Thanks for any additional clarification you can provide. :)
    0
  • cPRex Jurassic Moderator
    While we don't have a redirect in place, there is a "Check out our new API site!" message at the top of all the pages in the Developer Documentation Home - Developer Documentation - cPanel Documentation area. I reached out to our developers about the requirements for that API call as I wasn't able to find any official details in my research. I'll be sure to post as soon as I hear back with more information.
    0
  • swbrains
    Thanks!
    0
  • cPRex Jurassic Moderator
    If the command is run with no value applied, such as this example: uapi --user=main Email set_always_accept domain=domain.com
    the value is set to "auto" for the mxcheck value. In general, it is expected to provide one of the values, and I have one of our API guys making some edits to that page to make this more clear in the future.
    0

Please sign in to leave a comment.