gitlab API PUT(项目/:id) 405 Method Not Allowed

标签 gitlab http-status-code-405

我想重命名 gitlab 项目路径。 所以我使用 gitlab api PUT(projects/:id)。 但不允许使用 http 错误 405 方法。 我不知道。

谢谢

最佳答案

在 projects/:id 部分,确保将“:id”替换为您想要的实际 ID(例如 projects/123)。

它最终应该为 PUT 生成一个类似于以下内容的 URI:

https://gitlab.mydomain.com/api/v3/projects/123?id=123&path=MyProject

关于gitlab API PUT(项目/:id) 405 Method Not Allowed,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30293935/

相关文章:

docker - 如何配置 gitlab-ci runner 从正确的 http url 克隆

couchdb - 如何在 Mac OSX 中将 SproutCore 连接到 CouchDB

java - 尽管以表单形式发送 CSRF token ,但不支持 Spring Security CSRF 405 方法 POST

web-scraping - 假装 Firefox 而不是 Phantom.js

git - "Could not open a connection to your authentication agent",即使在 ssh-agent 启动后 ssh-add 错误

docker - CI脚本作业之前如何在推送时重建Docker镜像

kubernetes - 使用gitlab在一个容器中的多个容器中安装kubernetes卷

Gitlab 中的 WordPress CI

php - 特定 XMLHttpRequest 和 PHP 不允许 POST 405

jersey - 我如何禁用选项请求方法甚至在 dropwizard 中被处理