module Gitlab::Client::Projects

def create_deploy_key(project, title, key)

Returns:
  • (Gitlab::ObjectifiedHash) - Information about created deploy key.

Parameters:
  • key (String) -- The content of a deploy key.
  • title (String) -- The title of a deploy key.
  • project (Integer) -- The ID of a project.
def create_deploy_key(project, title, key)
  post("/projects/#{project}/keys", body: { title: title, key: key })
end