With the introduction of multiple endpoints, the name of the environment being connected to, needs to go into the URI. To retrieve a list of environments deployed on the tenant, call: GET https://api.businesscentral.dynamics.com/environments/v2.0/
With the introduction of multiple endpoints, the name of the environment being connected to, needs to go into the URI. To retrieve a list of environments deployed on the tenant, call: GET https://api.businesscentral.dynamics.com/environments/v2.0/
Answers
you have to enable it.
See here:
v1.0: https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/api-reference/v1.0/enabling-apis-for-dynamics-nav
v2.0: https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/api-reference/v2.0/enabling-apis-for-dynamics-nav
http://localhost:9048/test/api/beta/ -works
http://localhost:9048/test/api/v2.0/ -returns 404 not found
i guess the url is wrong, since you get a 404 Error.
Does that help you?
https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/api-reference/v2.0/endpoints-apis-for-dynamics
Important:
Sadly i can't test it for on premise right now and in the online environment it's working at my side.
Maybe someone else is having experience with on premise and the api setup.