Elon Report Posted April 21, 2022 Posted April 21, 2022 I've been fighting with this for the last two days. I haven't POSTED since the early 2000s and I'm sure the solution is obvious, so I'm asking for help. I'm trying to post a record to a custom database. My URI is https://my.site/api/cms/records/10 The documentation states "Field values. Keys should be the field ID, and the value should be the value. For fields of the Upload type, the type of the value must also be an object itself, with each key set as the filename and the value set as the raw file contents" For the field key, I've tried the field number ("22"), the field name ("Parse Time") and the template key ("titlefield_10"). I always get the error above. 😕 I'm using POSTMAN, if that helps anyone explain what I need to do. Thank you, Martin
Solution Stuart Silvester Posted April 21, 2022 Solution Posted April 21, 2022 The key in Postman for the POST parameter would be fields[22] And then specify your value Elon Report and Randy Calvert 1 1
Elon Report Posted April 22, 2022 Author Posted April 22, 2022 6 hours ago, Stuart Silvester said: The key in Postman for the POST parameter would be fields[22] And then specify your value Awesome! I feel like I did when I discovered BASIC in 1983! 🙂 So much potential! Thanks, Stuart. Stuart Silvester 1
Marc Posted April 22, 2022 Posted April 22, 2022 3 hours ago, MartinLawrence said: Awesome! I feel like I did when I discovered BASIC in 1983! 🙂 So much potential! Thanks, Stuart. 10 CLS 20 PRINT "Glad to see this sorted the issue for you." 30 END Mark H, Stuart Silvester, Elon Report and 3 others 6
Recommended Posts