Create Sitejet domain ID

This function creates a Sitejet ID for the specified domain.

Note:

A unique Sitejet ID is assigned to each domain on the cPanel account.

SecurityBasicAuth
Request
query Parameters
company
required
string

The name of the company the website represents.

Example: company=cPanel
domain
required
string

A cPanel account's domain.

Example: domain=example.com
assignTo
string <email>

Assign website to other user.

Example: assignTo=SallySmith@example.com
city
string

The city where the company or website owner is located.

Example: city=Capitol City
country
string <ISO-3166>

The country where the company or website owner is located.

Example: country=US
email
string <email>

The email address of the website owner.

Example: email=JohnSmith@example.com
firstname
string

The first name of the website owner.

Example: firstname=John
language
string <ISO-639>

The language to use for the Sitejet Website Builder.

Example: language=en
lastname
string

The last name of the website owner.

Example: lastname=Smith
metadata
string <encoded JSON>

Additional metadata for the website.

Example: metadata={"Attribute1":9,"Attribute2":3,"Attribute3":5}
note
string

Additional notes about the website.

Example: note=This is my website for my business.
phone
string

The phone number of the company or website owner.

Example: phone=000-123-4567
street
string

The street address of the company or website owner.

Example: street=1234 Main St
title
string

The website title.

Example: title=Example Website
zip
string

The zip code where the company or website owner is located.

Example: zip=99999
Responses
200

HTTP Request was successful.

Response Schema: application/json
apiversion
integer

The version of the API.

func
string

The name of the method called.

module
string

The name of the module called.

object
get/Sitejet/create_website
Request samples
uapi --output=jsonpretty \
  --user=username \
  Sitejet \
  create_website \
  domain='example.com' \
  company='cPanel'
Response samples
application/json
{
  • "apiversion": 3,
  • "func": "create_website",
  • "module": "Sitejet",
  • "result": {
    • "data": {
      • "websiteID": 123456
      },
    • "errors": null,
    • "messages": null,
    • "metadata": {
      • "transformed": 1
      },
    • "status": 1,
    • "warnings": null
    }
}