Update user
PATCH
https://api.vpsbg.eu/v1/userThis endpoint is used to update the user's information.
Request
Body Params application/json
address
string
optional
country_id
integer
optional
Can be modified if company is not set or account has not paid any orders.
city
string
optional
postal_code
string
optional
phone_number
string
optional
technical_email
string
optional
referral_code
string
optional
Cannot be modified after setting initially. Can be set if the account has not paid any orders or its not older than 30 days.
language_id
integer
optional
newsletter
boolean
optional
company
boolean
optional
company_name
string
optional
Can be modified within 5 days from first deposit or until an order is paid.
company_address
string
optional
uic
integer
optional
Can be modified within 5 days from first deposit or until an order is paid.
vat_number
string
optional
Can be modified within 5 days from first deposit or until an order is paid.
email_otp_enabled
boolean
optional
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
Responses
Successfully updated user.(200)
Successfully updated user.
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
name
string
required
email
string
required
tech_email
string
required
phone_number
string
required
country
object
required
code
string
required
name
string
required
name_bg
string
required
tax_rate
number
required
city
string
required
address
string
required
aff_hash
string
required
company_name
string
required
company_address
string
required
company_number
string
required
vat_number
string
required
2fa_enabled
boolean
required
email_otp_enabled
boolean
required
newsletter
boolean
required
currency
object
required
code
string
required
prefix
string
required
suffix
string
required
browser_sessions
array[string]
required
tokens
array [object {5}]
required
id
integer
optional
name
string
optional
created_at
string
optional
last_used_at
string
optional
permissions
array[string]
optional
technical_email
string
required
referral_code
string
required
language
string
required
email_verified
boolean
required
settings
object
required
floating_ips_limit
integer
required
can_modify_country
boolean
required
can_modify_company
boolean
required
can_modify_aff_hash
boolean
required
Example
{
"name": "john doe",
"email": "john_doe@gmail.com",
"technical_email": "john_doe2@mailinator.com",
"phone_number": "44153266443",
"country": {
"code": "BG",
"name": "Bulgaria",
"name_bg": "България",
},
"city": "Louisville",
"address": "2165 Black Stallion Road",
"referral_code": "ec69c5",
"language": "EN",
"tax_rate": 1.2,
"company_name": "Company Name LTD",
"company_address": "4652 Bee Street",
"uic": "223344",
"vat_number": "BG123456789",
"email_verified": true,
"2fa_enabled": false,
"email_otp_enabled": false,
"newsletter": true,
"currency": {
"code": "EUR",
"prefix": "€",
"suffix": ""
},
"browser_sessions": [],
"settings": {
"floating_ipv4_limit": 20,
"floating_ipv4_left": 14,
"floating_ipv6_limit": 2,
"floating_ipv6_left": 1,
"server_ipv6_limit": 1,
"can_modify_country": false,
"can_modify_company": false,
"can_modify_aff_hash": false
}
}
Last modified: 3 months ago