Page tree
Skip to end of metadata
Go to start of metadata

 

Description

This function creates a stub ticket.The system will use the stub ticket to create a cPanel support ticket.

 

Examples


 JSON API
https://hostname.example.com:2087/cpsess##########/json-api/ticket_create_stub_ticket
 XML API
https://hostname.example.com:2087/cpsess##########/xml-api/ticket_create_stub_ticket
 Command Line
whmapi1 ticket_create_stub_ticket

 

Notes:

  • You must URI-encode values.
  • For more information and additional output options, read our Guide to WHM API 1 documentation or run the whmapi1 --help command. 
  • We introduced this functionality in cPanel & WHM version 11.52.0.8.

 Output (JSON)
 {
	"metadata": {
		"result": 1,
		"version": 1,
		"command": "ticket_create_stub_ticket",
		"reason": "OK"
	},
	"data": {
		"ticket_id": 7648492
	}
}
 Output (XML)
<result>
	<metadata>
		<result>1</result>
		<version>1</version>
		<command>ticket_create_stub_ticket</command>
		<reason>OK</reason>
	</metadata>
	<data>
		<ticket_id>7648492</ticket_id>
	</data>
</result>


Note:

Use WHM's API Shell interface (WHM >> Home >> Development >> API Shell) to directly test WHM API calls.

   

Parameters

This function does not accept parameters.

Returns

ReturnTypeDescriptionPossible valuesExample
ticket_idinteger

The support ticket number that other functions can lookup or make additional changes to the support ticket.

A positive integer.

7648492