SNIPPET API RAW Submission
Created by: vik0803
Hello All,
I have an app written that fetch the snippet of the project via API but when I try to edit and submit it back with the snippet code it ends up with an error.
Error Status Code: 400 Bad Request.
Here is the detail of the submission.
Request Type: PUT
Request URL: http://gitlab.example.com/api/v3/projects/1/snippets/1?private_token=basdf34frs43rfesdf3445uuHgz
Request Payload: [{"id":1, "snippet_id":1, "title":"test tet", "file_name":"test.js", "code":"testing snippet program testing"}]
Thanks in advance.
Vik