/services/forms/v1/forms/edit
Auth
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
title |
string
max: 255 |
Yes | Contact Form |
|
submit_title |
string
max: 255 |
Yes | Send Message |
|
redirect_after_submit |
string|null
max: 255 |
No | https://example.com/thank-you |
|
notify_owner |
boolean|null | No | true |
|
confirmation_emails |
string|null | No | admin@example.com,info@example.com |
|
owner_submission_subject |
string|null
max: 255 |
No | New form submission received |
|
owner_submission_template_type |
string|null
default, raw |
No | default |
|
owner_submission_raw_template |
string|null | No | <h1>New Submission</h1> |
|
owner_submission_important |
string|null
max: 255 |
No | Please respond within 24 hours |
|
owner_submission_text |
string|null | No | A new submission has been received. |
|
notify_user |
boolean|null | No | false |
|
user_confirmation_emails |
string|null | No | email |
|
submission_subject |
string|null
max: 255 |
No | Thank you for your submission |
|
submission_template_type |
string|null
default, raw |
No | default |
|
submission_raw_template |
string|null | No | <h1>Thank You</h1> |
|
submission_important |
string|null
max: 255 |
No | We will get back to you within 48 hours |
|
submission_text |
string|null | No | Thank you for contacting us. |
|
webhook_enabled |
boolean|null | No | false |
|
webhook_url |
string (uri)
max: 255 |
Yes | https://hooks.example.com/form-submissions |
|
id |
integer | Yes | 42 |
| 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 |
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[] |
| 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/forms/v1/forms/edit" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"title": "Contact Form",
"submit_title": "Send Message",
"redirect_after_submit": "https://example.com/thank-you",
"notify_owner": true,
"confirmation_emails": "admin@example.com,info@example.com",
"owner_submission_subject": "New form submission received",
"owner_submission_template_type": "default",
"owner_submission_raw_template": "New Submission
",
"owner_submission_important": "Please respond within 24 hours",
"owner_submission_text": "A new submission has been received.",
"notify_user": false,
"user_confirmation_emails": "email",
"submission_subject": "Thank you for your submission",
"submission_template_type": "default",
"submission_raw_template": "Thank You
",
"submission_important": "We will get back to you within 48 hours",
"submission_text": "Thank you for contacting us.",
"webhook_enabled": false,
"webhook_url": "https://hooks.example.com/form-submissions",
"id": 42
}'
fetch('https://api.wemasy.nl/api/services/forms/v1/forms/edit', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_TOKEN',
'Accept': 'application/json',
'Content-Type': 'application/json'
},
body: JSON.stringify({
"title": "Contact Form",
"submit_title": "Send Message",
"redirect_after_submit": "https://example.com/thank-you",
"notify_owner": true,
"confirmation_emails": "admin@example.com,info@example.com",
"owner_submission_subject": "New form submission received",
"owner_submission_template_type": "default",
"owner_submission_raw_template": "New Submission
",
"owner_submission_important": "Please respond within 24 hours",
"owner_submission_text": "A new submission has been received.",
"notify_user": false,
"user_confirmation_emails": "email",
"submission_subject": "Thank you for your submission",
"submission_template_type": "default",
"submission_raw_template": "Thank You
",
"submission_important": "We will get back to you within 48 hours",
"submission_text": "Thank you for contacting us.",
"webhook_enabled": false,
"webhook_url": "https://hooks.example.com/form-submissions",
"id": 42
})})
.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/forms/v1/forms/edit', {
"title": "Contact Form",
"submit_title": "Send Message",
"redirect_after_submit": "https://example.com/thank-you",
"notify_owner": true,
"confirmation_emails": "admin@example.com,info@example.com",
"owner_submission_subject": "New form submission received",
"owner_submission_template_type": "default",
"owner_submission_raw_template": "New Submission
",
"owner_submission_important": "Please respond within 24 hours",
"owner_submission_text": "A new submission has been received.",
"notify_user": false,
"user_confirmation_emails": "email",
"submission_subject": "Thank you for your submission",
"submission_template_type": "default",
"submission_raw_template": "Thank You
",
"submission_important": "We will get back to you within 48 hours",
"submission_text": "Thank you for contacting us.",
"webhook_enabled": false,
"webhook_url": "https://hooks.example.com/form-submissions",
"id": 42
});
$data = $response->json();
import requests
headers = {
"Authorization": "Bearer YOUR_API_TOKEN",
"Accept": "application/json"
}
data = {
"title": "Contact Form",
"submit_title": "Send Message",
"redirect_after_submit": "https://example.com/thank-you",
"notify_owner": true,
"confirmation_emails": "admin@example.com,info@example.com",
"owner_submission_subject": "New form submission received",
"owner_submission_template_type": "default",
"owner_submission_raw_template": "New Submission
",
"owner_submission_important": "Please respond within 24 hours",
"owner_submission_text": "A new submission has been received.",
"notify_user": false,
"user_confirmation_emails": "email",
"submission_subject": "Thank you for your submission",
"submission_template_type": "default",
"submission_raw_template": "Thank You
",
"submission_important": "We will get back to you within 48 hours",
"submission_text": "Thank you for contacting us.",
"webhook_enabled": false,
"webhook_url": "https://hooks.example.com/form-submissions",
"id": 42
}
r = requests.post("https://api.wemasy.nl/api/services/forms/v1/forms/edit", headers=headers, json=data)
print(r.json())
{
"error": false,
"message": "string",
"data": []
}