Child pages
  • WHM API 1 Functions - accept_eula

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Description

Excerpt

This function records acceptance of cPanel & WHM's legal terms.

 To do this, the function creates a touchfile in the /var/cpanel/activate/ directory.

Warning
titleImportant:

Server owners must accept these agreements before they use cPanel & WHM.


Panel
bgColor#F2F2F2
borderStylenone

Examples 


Panel
bgColor#FFFFFF
borderStylenone


Expand
titleJSON API


Code Block
languagexml
https://hostname.example.com:2087/cpsess##########/json-api/accept_eula?api.version=1



Expand
titleCommand Line


Code Block
languagebash
whmapi1 accept_eula

Include Page
LIB:_WHMAPI1CLINote
LIB:_WHMAPI1CLINote


Expand
titleOutput (JSON)

{
   "data":{
   },
   "metadata":{
      "version":1,
      "reason":"Ok",
      "result":1,
      "command":"accept_eula"
   }
}

Include Page
LIB:_WHMAPIShellNote
LIB:_WHMAPIShellNote


Parameters

This function does not accept parameters.

Returns

This function only returns metadata.