Reseller - Hosting Accounts

Update a hosting account

Update the specified resource in storage.

put/api/reseller/hosting-accounts/{id}

Path parameters

idinteger required

Request body

hosting_plan_idinteger

ID of the hosting plan

ssh_accessboolean

SSH access enabled

namestring

Account holder name

phonestring

Phone number

addressstring

Street address

citystring

City

statestring

State/Province

zipstring

Postal/ZIP code

countrystring

Country

companystring

Company name

Response

Success

idinteger
domainstring required
hosting_plan_idinteger required
reseller_idinteger
usernamestring
ssh_accessboolean
passwordstring

Write-only. Never returned in responses.

descriptionstring
setup_datestring date-time
expiry_datestring date-time
renewal_datestring date-time
is_auto_ssl_enabledboolean
is_suspendedboolean
namestring
phonestring
addressstring
citystring
statestring
zipstring
countrystring
companystring

Example response

{
  "id": 1,
  "domain": "example.com",
  "hosting_plan_id": 1,
  "reseller_id": 1,
  "username": "user123",
  "ssh_access": true,
  "password": "VerrySecurePasswordX1!2#3z4",
  "description": "Main account",
  "setup_date": "2024-01-01T00:00:00Z",
  "expiry_date": "2025-01-01T00:00:00Z",
  "renewal_date": "2024-12-01T00:00:00Z",
  "is_auto_ssl_enabled": true,
  "name": "John Doe",
  "phone": "+123456789",
  "address": "123 Main St",
  "city": "New York",
  "state": "NY",
  "zip": "10001",
  "country": "US",
  "company": "Acme Inc."
}

Changes