Update a form
PUT
/forms/{id}Authorization
AuthorizationBearer token (JWT) · headerrequiredPath parameters
idstringrequiredForm ID or slug
Request body
requiredapplication/jsontitlestringslugstringdescriptionstringformatstringbodystringvisiblebooleansuccess_messagestringhas_address_fieldsbooleanResponses
200Form updated
_linksHalLinksidintegershop_idintegertitlestringslugstringbodystringdescriptionstringvisiblebooleanformatstringhas_address_fieldsbooleansuccess_messagestringcreated_onstring<date-time>updated_onstring<date-time>Request
curl -X PUT "https://api.onbolder.com/v2/forms/string" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"title": "string",
"slug": "string",
"description": "string",
"format": "string",
"body": "string",
"visible": true,
"success_message": "string",
"has_address_fields": true
}'const response = await fetch("https://api.onbolder.com/v2/forms/string", {
method: "PUT",
headers: {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json"
},
body: JSON.stringify({
"title": "string",
"slug": "string",
"description": "string",
"format": "string",
"body": "string",
"visible": true,
"success_message": "string",
"has_address_fields": true
})
});import requests
response = requests.put(
"https://api.onbolder.com/v2/forms/string",
headers={
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json"
},
json={
"title": "string",
"slug": "string",
"description": "string",
"format": "string",
"body": "string",
"visible": True,
"success_message": "string",
"has_address_fields": True
},
)Response
{
"_links": {
"property1": {
"href": "string",
"templated": true,
"method": "get",
"title": "string",
"type": "string"
},
"property2": {
"href": "string",
"templated": true,
"method": "get",
"title": "string",
"type": "string"
}
},
"id": 0,
"shop_id": 0,
"title": "string",
"slug": "string",
"body": "string",
"description": "string",
"visible": true,
"format": "string",
"has_address_fields": true,
"success_message": "string",
"created_on": "2019-08-24T14:15:22Z",
"updated_on": "2019-08-24T14:15:22Z"
}