2

I am trying to use Lightning API in my salesforce org. I have followed this documentation provided by salesforce. But I am getting this response.

enter image description here

Raw Response
HTTP/1.1 404 Not Found
Date: Tue, 08 Aug 2017 07:08:17 GMT
Strict-Transport-Security: max-age=31536000; includeSubDomains
Public-Key-Pins-Report-Only: pin-sha256="9n0oMpnSRF+W4W4JTq51avSXkWhIhduS2bxVLfzXsY="; max-age=86400; report-uri="https://calm-dawn-26291.herokuapp.com/hpkp-report/00D28000000bYxx";
Content-Security-Policy: referrer origin-when-cross-origin
Set-Cookie: BrowserId=QIUD3fFrRhSMBo_bdkZO9A;Path=/;Domain=.salesforce.com;Expires=Sat, 07-Oct-2017 07:08:17 GMT
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Sforce-Limit-Info: api-usage=128/15000
Content-Type: application/json;charset=UTF-8
Transfer-Encoding: chunked


[ {
  "errorCode" : "NOT_FOUND",
  "message" : "The requested resource does not exist"
} ]
  • I have checked this on sendbox and personal free DE. – Kritik Aug 8 '17 at 7:19
4

This will likely be an Summer '17 feature, which would imply it needs API version 40.0.

Try changing the /v39.0/ out the in URL to /v40.0/.

Also, as per the current documentation, make sure you are calling the API against a Developer Edition org. It won't work on a sandbox.

Lightning API is available as a Developer Preview in all DE orgs. To use the API in another type of org, contact Salesforce.

Also, see Lightning API Name Changed to User Interface API.

The User Interface API base URL has changed from /lapi to /ui-api.

https://{your_instance}.salesforce.com/services/data/v{api_version}/ui-api

Finally, your URL shows the 006 keyprefix of an Opportunity. Opportunity isn't currently on the User Interface API Supported Objects list.

0

The User Interface API base URL has changed from /lapi to /ui-api.

Try with this in WorkBench

/services/data/v40.0/ui-api/record-ui/001R0000003GeJ1IAK

Salesforce Summer ’17 Release Notes

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.