Python 403禁止使用delete()方法

时间:2019-11-14 13:42:06

标签: python-3.x python-requests teamcity-rest-api

我正在使用带有REST API的请求模块。试图删除TeamCity构建配置并陷入403禁止错误。卷毛有效,请参见下文。

AsyncObsetion<T>

但不是通过Requests delete()方法,请参见下文。

curl -u admin:password -X DELETE url

网址示例为https://teamcity_server/app/rest/buildTypes/build_id

但是,当尝试从TeamCity构建配置中删除参数设置时,相同的Requests delete()方法适用于以下网址。

网址示例为https://teamcity_server/app/rest/buildTypes/id:build_id/parameter/name

我们将不胜感激。

0 个答案:

没有答案