13.07.2015 Views

Database.com REST API Developer's Guide - Salesforce.com

Database.com REST API Developer's Guide - Salesforce.com

Database.com REST API Developer's Guide - Salesforce.com

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

ReferenceSObject Basic InformationAuthenticationAuthorization: Bearer tokenParametersnone requiredExampleSee Get a List of Objects on page 30.Error responsesSee Status Codes and Error Responses on page 78.SObject Basic InformationDescribes the individual metadata for the specified object. Can also be used to create a new record for a given object. Forexample, this can be used to retrieve the metadata for a custom object using the GET method, or create a new custom objectusing the POST method.URIFormats/vXX.X/sobjects/SObjectName/JSON, XMLHTTP MethodGET, POSTAuthenticationAuthorization: Bearer tokenParametersnone requiredExamples• For an example of retrieving metadata for an object, see Retrieve Metadata for an Object on page 31.• For an example of creating a new record using POST, see Create a Record on page 34.SObject DescribeCompletely describes the individual metadata at all levels for the specified object. For example, this can be used to retrieve thefields, URLs, and child relationships for a custom object.The If-Modified-Since header can be used with this resource, with a date format of EEE, dd MMM yyyy HH:mm:ssz. When this header is used, if the object metadata has not changed since the provided date, a 304 Not Modified statuscode is returned, with no response body.URIFormats/vXX.X/sobjects/SObjectName/describe/JSON, XML57

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!