0

I'm integrating with an external system, they will be able to send a POST request through REST API and create records of a custom object I've created in my org. I need to send to the client the documentation about all the contracts, the endpoint and all the error or success messages related to this request. Is there a easy way in salesforce to get the json body they have to send me based on the needed fields? I would like to know if there is also a way to get all the other information like the curl, the error messages etc..

Thanks

1

Everything you need is in REST API Developer Guide

REST by itself is just a way to send HTTP requests so curl commands don't differ here from any other. See Using cURL in the REST Examples and Examples sections from the documentation.

Errors are indicated by standard HTTP status codes which you can find on Wikipedia: List of HTTP status codes for instance.

Full reference is here: REST API Developer Guide: Reference

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.