6

I am getting this error in Workbench when using the REST explorer:

API_DISABLED_FOR_ORG
message: The REST Metadata API is not enabled for this Organization.
errorCode: API_DISABLED_FOR_ORG

INFO: We are on OEM licensed Org through app exchange partner, but it is on enterprise edition and yes API is enabled for the profile in question.

Can REST Metadata Api be enabled and if so how?

P.S. Ultimate Problem trying to solve is how do I get a list of States by Country for use in a JS array, on another integrated PLatform? We have States&Countries enabled. I have created a separate Question for this!

  • What is the edition of the Salesforce org that where you intend to enable the Metadata API? If it is a Professional edition org, API access is unavailable by default and needs to be added explicitly at an an additional cost. You will need to get in touch with your Salesforce Account Executive to get this done. – Jigar Shah Jun 28 '18 at 4:14
2

It seems that the features is being enabled in Winter 19 release. So if your sandbox is in Winter 19 you should not get this error anymore. The official notes doesn't say explicitly, but you can read more about it here: https://releasenotes.docs.salesforce.com/en-us/winter19/release-notes/rn_api_meta_rest_deploy.htm I have tried it and it works in Winter 19, while if I try to use it in a Summer 18 sandbox I get the same error message as the question

  • This answer would be improved if you add a link to release notes or something similar. – Adrian Larson Sep 20 '18 at 16:31
4

The Metadata REST API first appeared in the REST API in Summer '16 (v37.0). Apparently, there was supposed to be a pilot for this, but I cannot find any documentation anywhere that ever speaks about this pilot, so it's possible that it never made it as far as a public pilot, and only maintained for backwards compatibility, or it might be something that will appear in a future release. At any rate, you can't enable this, nor can Support, as far as I can tell. You'd have to get permission from whichever Product Manager controls this feature.

  • Is it available now? – Chinmaya Hegde Jul 26 '18 at 12:32
  • @chinmayahd No. This answer is still valid. Unfortunate, as I'd love to have this feature. – sfdcfox Jul 26 '18 at 16:09

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.