Disable Translation API

Hi team,

is there a way to disable translation Api, GET /translations

1 Answer

1

The access to /translations is controlled through the permissions to directus_translations, so you can prevent the user from accessing the endpoint through their attached policy

Hi rijkvanzanten, Thanks for the reply, I tried to create policy to block access to directus_translations, and added the policy to the roles but still users can access /translations API. I don't have any translations, so the Api returns empty array e.g. mydomain.com/translations {"data":[]}