You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unit creation via an API does not return unit identifier. I've tried to make requests with different keys and it's always returns id = 15, but when I'm making GET /api/translations/example-project/messages/en/units/ request — units have ids like 149, 150, 151 and so on. I've tried to use all IDs from the response, but they are all not unit_id.
Describe the issue
Unit creation via an API does not return unit identifier. I've tried to make requests with different keys and it's always returns
id = 15
, but when I'm makingGET /api/translations/example-project/messages/en/units/
request — units have ids like 149, 150, 151 and so on. I've tried to use all IDs from the response, but they are all notunit_id
.I already tried
Steps to reproduce the behavior
POST /api/translations/(string: project)/(string: component)/(string: language)/units/
id
key in the response.Response:
Here is PHP code which I used to reproduce the error:
Expected behavior
Response have
id
of the created Unit.Screenshots
No response
Exception traceback
No response
How do you run Weblate?
Docker container
Weblate versions
Weblate 4.11.2
Weblate deploy checks
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: