Skip to content
Discussion options

You must be logged in to vote

Looks like the path wants the project slug, not a URL/id/name.

In current Weblate docs/source the update endpoint is PATCH /api/projects/(string:project)/, and ProjectViewSet uses lookup_field = "slug". The hosted API also returns project URLs like https://hosted.weblate.org/api/projects/freeplane/, with instructions and license on the project object. So I’d first GET /api/projects/, copy the url for your project, then PATCH that exact URL with JSON, for example:

{"instructions":"...","license":"MIT"}

I didn’t try a write against your instance, but if the copied detail URL still gives 404, I’d check whether that token can see/edit the project, since the API filters projects by access.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@rffontenelle
Comment options

Answer selected by rffontenelle
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants