function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
saurabhEventsaurabhEvent 

REST META DATA API error

Hi All,

 

I am trying to build a REST app for pulling up Metadata components from an Salesforce Sandbox, I get following error:

 

If I use : https://cs1.salesforce.com/services/metadata/v25.0/components/

 

Error Message : [{"message":"The REST API is not enabled for this Organization.","errorCode":"API_DISABLED_FOR_ORG"}]

 

If I use : https://cs1.salesforce.com/services/metadata/25.0/components/

 

Error Message : [{"message":"The requested resource does not exist","errorCode":"NOT_FOUND"}]

 

I am passing Bearer as an authorization token in the header request.

 

Am I missing something here?

 

 

Thanks!

Best Answer chosen by Admin (Salesforce Developers) 
saurabhEventsaurabhEvent

Seems like salesforce have rolled back pilot Metadata REST API, and we will be only able to build around this once salesforce publishes new fresh API.

 

Thanks all for responses

All Answers

JitendraJitendra

Which license do you have for your organization for Salesforce?

saurabhEventsaurabhEvent

Enterprise Edition of Salesforce

JitendraJitendra

Hi Saurabh,

 

Have you tried the version 24 ?

 

In new editions it is activated by default. 

Please have a look in below thread.

 

http://boards.developerforce.com/t5/REST-API-Integration/How-can-I-enable-the-REST-API/td-p/211479

 

You can try to create a case to Salesforce if this is not activated for your organizations.

saurabhEventsaurabhEvent

Seems like salesforce have rolled back pilot Metadata REST API, and we will be only able to build around this once salesforce publishes new fresh API.

 

Thanks all for responses

This was selected as the best answer