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.

ReferenceHeadersParametersParameterqDescriptionA SOSL statement that is properly URL-encoded.ExampleSee Search for a String on page 45.For more information on SOSL see the <strong>Database</strong>.<strong>com</strong> SOQL and SOSL Reference.HeadersThis section lists custom HTTP request and response headers used for <strong>REST</strong> <strong>API</strong>.• Limit Info HeaderLimit Info HeaderHeader Field Name and ValuesThe Limit Info header is a response header that’s returned from each call to the <strong>REST</strong> <strong>API</strong>. This header returns limitinformation for the organization. Use this header to monitor your <strong>API</strong> limits as you make calls against the organization.Field nameSforce-Limit-InfoField valuesExample• api-usage—Specifies the <strong>API</strong> usage for the organization against which the call was made in the format nn/nnnn.The first number is the number of <strong>API</strong> calls used, and the second number is the <strong>API</strong> limit for the organization.Sforce-Limit-Info: api-usage=14/5000This is an example of a response to a <strong>REST</strong> request for a Merchandise record.HTTP/1.1 200 OKDate: Mon, 20 May 2013 22:21:46 GMTSforce-Limit-Info: api-usage=18/5000Last-Modified: Mon, 20 May 2013 20:49:32 GMTContent-Type: application/json;charset=UTF-8Transfer-Encoding: chunked{"attributes" : {"type" : "Merchandise__c","url" : "/services/data/v30.0/sobjects/Merchandise__c/a00D0000008pQSNIA2"},"Id" : "a00D0000008pQSNIA2","OwnerId" : "005D0000001QX8WIAW","IsDeleted" : false,"Name" : "Phone Case - iPhone 4/4S","CreatedDate" : "2013-05-20T20:49:32.000+0000","CreatedById" : "005D0000001QX8WIAW","LastModifiedDate" : "2013-05-20T20:49:32.000+0000","LastModifiedById" : "005D0000001QX8WIAW",77

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

Saved successfully!

Ooh no, something went wrong!