- 👋 Hello
- API Introduction
- API Reference
- User
- Balance
- Affiliate
- Invoices
- Support
- SSH Keys
- Servers
- Scale
- Addons
- Rescue
- List plans
- List servers
- Server status
- Get a server
- Server metrics
- Bandwidth
- Deploy new server
- Start a server
- Restart a server
- Stop a server
- Power off
- Cancel server
- Undo cancel request
- Change password
- Update hostname
- Update SSH Keys
- Modify ISOs
- Restore
- Renew server
- Reinstall Server
- Change Primary IP
- Calculate renew amount
- Plans
- Snapshots
- Backups
- Server Images
- Floating IPs
- IP Addresses
- Network Protection
- Orders
- ISOs
Update user
PATCH
https://api.vpsbg.eu/v1/user
User
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Header Params
Accept
string
required
Default:
application/json
Body Params application/json
address
string
optional
country_id
integer
optional
city
string
optional
postal_code
string
optional
phone_number
string
optional
technical_email
string
optional
referral_code
string
optional
language_id
integer
optional
newsletter
boolean
optional
type
string
optional
company_name
string
optional
company_address
string
optional
uic
integer
optional
vat_number
string
optional
email_otp_enabled
boolean
optional
auto_renew_services
boolean
required
show_tour
boolean
required
Default:
true
show_switch_to_v1_banner
boolean
required
Default:
false
Example
{
"address": "4597 Clark Street",
"city": "Lemont",
"postal_code": "60439",
"country_id": 40,
"language_id": 2,
"phone_number": "0884625630",
"tech_email": "techmailinator2@mailinator.com",
"aff_hash": "b4e7b5",
"newsletter": true,
"company": true,
"company_name": "Company Name LTD",
"company_address": "2646 Tennessee Avenue",
"company_number": "223344",
"vat_number": "BG123456789"
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PATCH 'https://api.vpsbg.eu/v1/user' \
--header 'Accept;' \
--header 'Content-Type: application/json' \
--data-raw '{
"address": "4597 Clark Street",
"city": "Lemont",
"postal_code": "60439",
"country_id": 40,
"language_id": 2,
"phone_number": "0884625630",
"tech_email": "techmailinator2@mailinator.com",
"aff_hash": "b4e7b5",
"newsletter": true,
"company":true,
"company_name": "Company Name LTD",
"company_address": "2646 Tennessee Avenue",
"company_number": "223344",
"vat_number": "BG123456789"
}'
Responses
🟢200Successfully updated user.
application/json
Body
id
integer
required
Example:
6831
name
string
required
Example:
john doe
email
string
required
Example:
john_doe@gmail.com
technical_email
string
required
Example:
john_doe_tech@gmail.com
phone_number
string
required
Example:
359 895624580
country
object
required
id
integer
required
Example:
40
code
string
required
Example:
BG
name
string
required
Example:
Bulgaria
name_bg
string
required
Example:
България
city
string
required
Example:
Sofia
address
string
required
Example:
Bul. bulgaria 258
referral_code
string
required
Example:
ec69c5
language
string
required
Example:
EN
tax_rate
number
required
Example:
1.2
type
string
required
Default:
unset
Examples:
individualbusiness
company_name
string
required
Example:
Example company LTD
company_address
string
required
Example:
Luxemburg, Strasse 223
uic
string
required
Example:
223344
vat_number
string
required
Example:
BG123456789
email_verified
boolean
required
2fa_enabled
boolean
required
email_otp_enabled
boolean
required
newsletter
boolean
required
auto_renew_services
boolean
required
currency
object
required
code
string
required
Example:
EUR
prefix
string
required
Example:
€
suffix
string
required
browser_sessions
array[object (Session) {8}]
required
id
integer
required
Example:
1
current
boolean
required
ip
string
required
Example:
172.18.0.1
last_used_at
string
required
Example:
2024-08-28T11:32:58.000000Z
user_agent
string
required
Example:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36
browser_name
string
required
Example:
Google Chrome
browser_version
string
required
Example:
127.0.0.0
os
string
required
Example:
Windows 10
settings
object
required
floating_ipv4_limit
integer
required
Example:
20
floating_ipv4_left
integer
required
Example:
10
floating_ipv6_limit
integer
required
Example:
2
floating_ipv6_left
integer
required
Example:
1
server_ipv6_limit
integer
required
Example:
1
can_modify_country
boolean
required
can_modify_company
boolean
required
can_modify_aff_hash
boolean
required
show_shared_hosting
boolean
required
Default:
false
support
object
required
status
string
required
billing_cycle
integer | null
required
created_at
string | null
required
expiry_at
string | null
required
plan
object (Support plan)
required
cancel_request
object (Cancel Request)
optional
Example
{
"id": 6831,
"name": "john doe",
"email": "john_doe@gmail.com",
"technical_email": "john_doe_tech@gmail.com",
"phone_number": "359 895624580",
"country": {
"id": 40,
"code": "BG",
"name": "Bulgaria",
"name_bg": "България"
},
"city": "Sofia",
"address": "Bul. bulgaria 258",
"referral_code": "ec69c5",
"language": "EN",
"tax_rate": 1.2,
"type": "legal_entity",
"company_name": "Example company LTD",
"company_address": "Luxemburg, Strasse 223",
"uic": "223344",
"vat_number": "BG123456789",
"email_verified": true,
"2fa_enabled": true,
"email_otp_enabled": true,
"newsletter": false,
"auto_renew_services": false,
"currency": {
"code": "EUR",
"prefix": "€",
"suffix": ""
},
"browser_sessions": [],
"settings": {
"floating_ipv4_limit": 20,
"floating_ipv4_left": 10,
"floating_ipv6_limit": 2,
"floating_ipv6_left": 1,
"server_ipv6_limit": 1,
"can_modify_country": false,
"can_modify_company": true,
"can_modify_aff_hash": false
},
"support": null
}
🔴500Server Error
Modified at 2025-04-04 11:49:37