curl --location --request PUT 'https://app.mgpanel.co/api/forms/' \
--header 'X-Account-Nick: {{ACCOUNT_NICK}}' \
--header 'Authorization: Bearer {{API_KEY}}' \
--header 'Content-Type: application/json' \
--data '{
"title": "Contacto actualizado",
"status": 1,
"fields": [
{
"field_id": "60a1000000000000000000aa",
"label": "Email",
"type": 11,
"grid_size": 6
},
{
"field_id": "60a1000000000000000000ab",
"label": "Motivo de contacto",
"type": 40,
"grid_size": 12,
"status": false,
"options": [
{
"value": "ventas",
"text": "Ventas"
},
{
"value": "soporte",
"text": "Soporte"
}
]
}
],
"translations": [
{
"code": "us",
"title": "Contact updated",
"fields": [
{
"field_id": "60a1000000000000000000ab",
"label": "Reason for contact"
}
]
}
]
}'