API unit creation is not available if "Manage strings" is disabled
Describe the problem
I want to disable adding new units creation from UI, but keep this functionality for the API call:
POST /api/translations/{project}/{component}/en/units/
There is Manage strings feature, but it disables API creation too 😢
Describe the solution you'd like
I want to be able to create units from API from this endpoint even if "Manage strings" option is disabled, or have separate one (if this endpoint is used in the UI).
Describe alternatives you've considered
No response
Screenshots
No response
Additional context
No response
The API is intentionally consistent with the UI
@nijel I want to make some kind of middleware service which will be responsible for managing source strings. Users from the UI cannot add or modify them. Is there is any way to do it without making raw SQL queries?
There is separate permission for this (Add new string), using that might be better way to go if you want to restrict usage in some cases.
This issue looks more like a support question than an issue. We strive to answer these reasonably fast, but purchasing the support subscription is not only more responsible and faster for your business but also makes Weblate stronger.
In case your question is already answered, making a donation is the right way to say thank you!
So I need only one user account which can do that functionality, let's say bot user. And other teams can't add keys, right?
Yes.
This issue has been automatically marked as stale because there wasn’t any recent activity.
It will be closed soon if no further action occurs.
Thank you for your contributions!