Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
not considering authentication but what would be the proper format of a curl statement at the terminal to post a new comment for say node 13?
I have tried a number of different ways but still not getting the comment to POST.
eg
curl -H "Accept: application/json" -H "Content-Type: application/json" -X POST -d '{"type": "comment", "subject":"Test Rest 1", "comment_body":"Test Body", "nid":"13"}' http://screenshots.localhost.com/comment
Thanks
Al
Comments
Comment #1
davidseth CreditAttribution: davidseth commentedCheck out this issue: https://www.drupal.org/node/2318885 for information on creating a comment