I am submitting Nodes from Android and iPHONE to DRUPAL. I am getting 200 back. Is there a way to get a specific reference / confirmation code back form the server after a successful POST? I would want a code that could be directly referenced from the web site. The content type I am working with does have a serial number that i use to build the title. It would be perfect if I could get this serial number back, and reference it latter.

Comments

ygerasimov’s picture

Status: Active » Fixed

I don't quite understand this request. 200 code means that operation was successful.

You should get nid of the node in response.

See http://drupalcode.org/project/services.git/blob/refs/heads/7.x-3.x:/reso... for more details about how node create request is executed.

If you would like to get something different from POST request you need to alter node resource (http://drupalcode.org/project/services.git/blob/refs/heads/7.x-3.x:/docs...) and change node create call to return your custom response in case of special content type.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.