Unverified Commit e54b9586 authored by Gautier de Saint Martin Lacaze's avatar Gautier de Saint Martin Lacaze
Browse files

Fix #708 : fix typo in create_access_level key

parent ebaf80e6
......@@ -424,7 +424,7 @@ public class TagsApi extends AbstractApi {
* @throws GitLabApiException if any exception occurs
*/
public ProtectedTag protectTag(Object projectIdOrPath, String name, AccessLevel createAccessLevel) throws GitLabApiException {
Form formData = new GitLabApiForm().withParam("name", name, true).withParam("create_access_Level", createAccessLevel);
Form formData = new GitLabApiForm().withParam("name", name, true).withParam("create_access_level", createAccessLevel);
Response response = post(Response.Status.OK, formData, "projects", getProjectIdOrPath(projectIdOrPath), "protected_tags");
return (response.readEntity(ProtectedTag.class));
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment