Hello,
I am having a problem to put png images in a gitlab repository with the gitlab API. I am trying this:
curl -X PUT --header “PRIVATE-TOKEN: ” --header “Content-Type: application/json” --data @solicitud.json https://gitlab.com/api/v4/projects//repository/files
where the solicitud.json is a json file with the next information on it:
“branch”: “main”,
“author_email”: XXX,
“author_name”: XXX,
“commit_message”: “Subiendo archivo”,
“encoding”: “base64”,
“file_path”: XXX,
“content”: The PNG base64 codification
But when I run this I get {“error”:“404 Not Found”}
Do anyone knows what is the problem?
Thank you very much, kind regards,
Gonzalo