Open
Description
Hi David -
I'm having a bit of trouble with the post method of the rest client, implemented in a Symfony2.2 project.
By way of example, this throws a 404 error. The $postData is an array keyed by field_name.
$rest_client->post('services/data/v20.0/sobjects/Lead', $postData);
Client error response
[status code] 404
[reason phrase] Not Found
[url] https://na15.salesforce.com/services/apexrest/services/data/v20.0/sobjects/Lead
This, on the other hand, works perfectly
$rest_client->call('/services/data/v27.0/sobjects/Lead/describe', null);
What am I failing to grasp about proper usage of the post method, or is it not complete?
Thanks!
Bart
Metadata
Metadata
Assignees
Labels
No labels