def adddeploykey(self, project_id, title, key):
        data = {"id": project_id, "title": title, "key": key}

        request = requests.post("{0}/{1}/keys".format(self.projects_url, project_id),
                                headers=self.headers, data=data, verify=self.verify_ssl, auth=self.auth, timeout=self.timeout)
        if request.status_code == 201:
            return request.json()
        else:
            return False
Creates a new deploy key for a project.
dataset/ETHPy150Open pyapi-gitlab/pyapi-gitlab/gitlab/__init__.py/Gitlab.adddeploykey