Trouble populating text field widget while executing node.create through Service using Rest server (Drupal 7)

drupal.stackexchange https://drupal.stackexchange.com/questions/21972

  •  30-10-2019
  •  | 
  •  

Question

I have a Rest server running using the Services module which is setup to receive node and user requests. I have also created a new content type with the following fields:

enter image description here

I am able to add new instances of this content type using Poster (a Firefox plugin for creating http-post requests) using an http-post to my rest server with the following body (using application/json content-type):

{
  "title":"online submission",
  "type":"basic_content",
  "field_text":[
    {
      "value":"Some Text"
    }
  ]
}

I have tried many different variations of this json string (including make it all one line) and it never seems populate the text field. Could anyone shed any light on this? I am willing to use a different content-type if necessary.

No correct solution

Licensed under: CC-BY-SA with attribution
Not affiliated with drupal.stackexchange
scroll top