Description

This function creates a stub ticket.

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

Examples




https://hostname.example.com:2087/cpsess##########/json-api/ticket_create_stub_ticket




https://hostname.example.com:2087/cpsess##########/xml-api/ticket_create_stub_ticket




whmapi1 ticket_create_stub_ticket

 



 {
	"metadata": {
		"result": 1,
		"version": 1,
		"command": "ticket_create_stub_ticket",
		"reason": "OK"
	},
	"data": {
		"ticket_id": 7648492
		"secure_id": rofh411bv8
	}
}




<result>
	<metadata>
		<result>1</result>
		<version>1</version>
		<command>ticket_create_stub_ticket</command>
		<reason>OK</reason>
	</metadata>
	<data>
		<ticket_id>7648492</ticket_id>
		<secure_id>rofh411bv8</secure_id>
	</data>
</result>



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

secure_idstring

The support ticket's secure ID token.

We added this return in cPanel & WHM version 76.


A string value.rofh411bv8