/services/domains/v1/holder-profiles/update
Auth
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
profile_id |
integer | Yes | 7 |
|
last_updated_at |
integer|null | No | 1711929600 |
|
profile_name |
string
max: 255 |
Yes | My Business Profile |
|
first_name |
string
max: 255 |
Yes | John |
|
last_name |
string
max: 255 |
Yes | Doe |
|
company_name |
string|null
max: 255 |
No | Acme Inc. |
|
email |
string (email)
max: 255 |
Yes | john@example.com |
|
phone |
string
max: 50 |
Yes | +31612345678 |
|
address_line1 |
string
max: 255 |
Yes | Keizersgracht 123, 1015 CJ |
|
address_line2 |
string|null
max: 255 |
No | Suite 4B |
|
city |
string
max: 255 |
Yes | Amsterdam |
|
state |
string|null
max: 255 |
No | North Holland |
|
postal_code |
string
max: 20 |
Yes | 1015 CJ |
|
country |
string
max: 2 |
Yes | NL |
|
is_default |
boolean | No | true |
| Header | Type | Description | Example |
|---|---|---|---|
X-RateLimit-Limit |
integer | Maximum number of requests allowed per minute | 60 |
X-RateLimit-Remaining |
integer | Number of requests remaining in the current window | 57 |
| Field | Type | Description |
|---|---|---|
error |
boolean | |
message |
string | |
data |
string |
| Header | Type | Description | Example |
|---|---|---|---|
X-RateLimit-Limit |
integer | Maximum number of requests allowed per minute | 60 |
X-RateLimit-Remaining |
integer | Number of requests remaining in the current window | 57 |
| Field | Type | Description |
|---|---|---|
error |
boolean | |
message |
string | |
data |
mixed[] |
| Header | Type | Description | Example |
|---|---|---|---|
X-RateLimit-Limit |
integer | Maximum number of requests allowed per minute | 60 |
X-RateLimit-Remaining |
integer | Number of requests remaining in the current window | 57 |
| Field | Type | Description |
|---|---|---|
error |
boolean | |
message |
string | |
data |
mixed[] |
| Field | Type | Description |
|---|---|---|
message |
string | Errors overview. |
errors |
object | A detailed description of each field that failed validation. |
| Header | Type | Description | Example |
|---|---|---|---|
X-RateLimit-Limit |
integer | Maximum number of requests allowed per minute | 60 |
X-RateLimit-Remaining |
integer | Number of requests remaining in the current window | 57 |
| Field | Type | Description |
|---|---|---|
error |
boolean | |
message |
string |
| Header | Type | Description | Example |
|---|---|---|---|
X-RateLimit-Limit |
integer | Maximum number of requests allowed per minute | 60 |
X-RateLimit-Remaining |
integer | Number of requests remaining in the current window | 57 |
| Field | Type | Description |
|---|---|---|
error |
boolean | |
message |
string |
| Header | Type | Description | Example |
|---|---|---|---|
X-RateLimit-Limit |
integer | Maximum number of requests allowed per minute | 60 |
X-RateLimit-Remaining |
integer | Number of requests remaining in the current window | 57 |
Retry-After |
integer | Seconds until the rate limit resets | 60 |
| Field | Type | Description |
|---|---|---|
error |
boolean | |
message |
string |
curl -X POST "https://api.wemasy.nl/api/services/domains/v1/holder-profiles/update" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"profile_id": 7,
"last_updated_at": 1711929600,
"profile_name": "My Business Profile",
"first_name": "John",
"last_name": "Doe",
"company_name": "Acme Inc.",
"email": "john@example.com",
"phone": "+31612345678",
"address_line1": "Keizersgracht 123, 1015 CJ",
"address_line2": "Suite 4B",
"city": "Amsterdam",
"state": "North Holland",
"postal_code": "1015 CJ",
"country": "NL",
"is_default": true
}'
fetch('https://api.wemasy.nl/api/services/domains/v1/holder-profiles/update', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_TOKEN',
'Accept': 'application/json',
'Content-Type': 'application/json'
},
body: JSON.stringify({
"profile_id": 7,
"last_updated_at": 1711929600,
"profile_name": "My Business Profile",
"first_name": "John",
"last_name": "Doe",
"company_name": "Acme Inc.",
"email": "john@example.com",
"phone": "+31612345678",
"address_line1": "Keizersgracht 123, 1015 CJ",
"address_line2": "Suite 4B",
"city": "Amsterdam",
"state": "North Holland",
"postal_code": "1015 CJ",
"country": "NL",
"is_default": true
})})
.then(r => r.json())
.then(data => console.log(data));
$response = Http::withToken('YOUR_API_TOKEN')
->accept('application/json')
->post('https://api.wemasy.nl/api/services/domains/v1/holder-profiles/update', {
"profile_id": 7,
"last_updated_at": 1711929600,
"profile_name": "My Business Profile",
"first_name": "John",
"last_name": "Doe",
"company_name": "Acme Inc.",
"email": "john@example.com",
"phone": "+31612345678",
"address_line1": "Keizersgracht 123, 1015 CJ",
"address_line2": "Suite 4B",
"city": "Amsterdam",
"state": "North Holland",
"postal_code": "1015 CJ",
"country": "NL",
"is_default": true
});
$data = $response->json();
import requests
headers = {
"Authorization": "Bearer YOUR_API_TOKEN",
"Accept": "application/json"
}
data = {
"profile_id": 7,
"last_updated_at": 1711929600,
"profile_name": "My Business Profile",
"first_name": "John",
"last_name": "Doe",
"company_name": "Acme Inc.",
"email": "john@example.com",
"phone": "+31612345678",
"address_line1": "Keizersgracht 123, 1015 CJ",
"address_line2": "Suite 4B",
"city": "Amsterdam",
"state": "North Holland",
"postal_code": "1015 CJ",
"country": "NL",
"is_default": true
}
r = requests.post("https://api.wemasy.nl/api/services/domains/v1/holder-profiles/update", headers=headers, json=data)
print(r.json())
{
"error": false,
"message": "string",
"data": "string"
}