Jump to content
WebFlake
  • 0

REST API - POST to Pages


Frood

Question

I am attempting to make an API encoded URL work to post a completed form into a database record, but I am running into a little issue with defining parameters.

Under the API documentation, for cms/records/{database.id}, I need to define category (if applicable), author, fields, and other optionals like locked, pinned, hidden, tags etc.

All is well until I tried to define fields. The fields are being picked up as a string, rather than an object.

e.g name:value
"fields":{"field_1:value","field_3:value","field_5:value","field_7:value","field_9:value"}

What happens is field ID 1 will pick up the 1st character, field ID 3 will pick up the 3rd character, etc.

So when it gets posted as a new record, the record will look like:
field ID1 being the Title, Field IDs 3, 5, 7 being filter/category options, Field ID 9 being the Content

Title: F (First Letter in the value of fields)
Categories/Filters: Default Value of the Field
Content: V (9th Letter in the value of fields)

Does anyone know how to resolve this issue?

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0
The question(s) in this support topic have been answered and the topic author has resolved their issue. This topic is now closed. If you have other questions, please open a new topic.
  • Support Team - September 9th, 2017 - June 8, 2018
  • Junior Moderator - December 14th 2018 - November 16th, 2019
  • Designer - November 16th, 2019 - June 5th, 2020
  • Moderator - June 5th, 2020 - August 28th, 2020
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...