We have a new documentation site for cPanel & WHM! You can find our new documentation site at docs.cpanel.net.

We will continue to maintain our API documentation on this server.

Child pages
  • WHM API 1 Functions - ticket_create_stub_ticket
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

Warning:

You cannot use this method to call the function.

 Output (JSON)
{
	"metadata": {
		"result": 1,
		"version": 1,
		"command": "ticket_create_stub_ticket",
		"reason": "OK"
	},
	"data": {
		"ticket_id": 7648492,
		"secure_id": "rofh411bv8"
	}
}
 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>
		<secure_id>rofh411bv8</secure_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 look up.

A positive integer.

7648492

secure_idstring

The support ticket's secure ID token.

Note:

We added this return in cPanel & WHM version 76.

A string value.rofh411bv8