PATCH
/dashboard/account Update account details
Updates the user's personal information.
Request Body
first_namestringlast_namestringphonestringResponse
200
successstringmessagestringRequest
curl -X PATCH "https://api.royalehosting.net/dashboard/account" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "x-organization-id: YOUR_ORG_ID" \
-H "Content-Type: application/json" \
-d '{}'Request
const response = await fetch("https://api.royalehosting.net/dashboard/account", {
method: "PATCH",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"x-organization-id": "YOUR_ORG_ID",
"Content-Type": "application/json",
},
body: JSON.stringify({
"first_name": "John",
"last_name": "Doe",
"phone": "+31612345678"
}),
});
const data = await response.json();Request
import requests
response = requests.patch(
"https://api.royalehosting.net/dashboard/account",
headers={
"Authorization": "Bearer YOUR_API_KEY",
"x-organization-id": "YOUR_ORG_ID",
}
)
print(response.json())Response
{
"success": "true",
"message": "Updated details"
}