module Gitlab::Client::Projects

def create_deploy_key(project, title, key, options = {})

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

Parameters:
  • options (Hash) -- A customizable set of options.
  • key (String) -- The content of a deploy key.
  • title (String) -- The title of a deploy key.
  • project (Integer, String) -- The ID or path of a project.
def create_deploy_key(project, title, key, options = {})
  post("/projects/#{url_encode project}/deploy_keys", body: { title: title, key: key }.merge(options))
end