We just got the feedback from our colleagues and they have told us that the object key "1" represents the custom field id. The error would indicate that you don't have a custom field with that id in your system. It should also have the same type and label sent. If you do please send us the whole request and a wordpress login to debug the problem.
Hello, it seems that the Api doc about the customFields in the add appointment is not working.
Here my post :
const postBooking = await axios.post(`${ameliaURL}${postBookingUrl}`, {
"type": "appointment",
"bookings": [
{
"extras": transformStateToExtras(stateExtra),
"customFields": {
"1": {
"label": "test",
"type": "text",
"value": "custom field value"
}
},
***********
I follow here the doc and I got this 500 internal error : data: {message: 'Invalid key 1.'}
I tried many things, but nothing seems to work.
Can you help me ?
Thanks :)
Hello Karl,
Thank you for reaching out to us.
We will take a look at this now and as soon as we have more information we will contact you again on this ticket.
Kind Regards,
Marko Davidovic [email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps, floor plans, choropleth maps, and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Hello Karl,
We just got the feedback from our colleagues and they have told us that the object key "1" represents the custom field id. The error would indicate that you don't have a custom field with that id in your system. It should also have the same type and label sent. If you do please send us the whole request and a wordpress login to debug the problem.
"customFields": { "1": { "label": "text", "type": "text", "value": "custom field value" } },
Kind Regards,
Marko Davidovic [email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps, floor plans, choropleth maps, and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables