curl -i -u用户:pass -H“接受:application / json” -H“内容类型:application / json” -X POST -d“ {\” type \“:\”分支\“, \“ value \”:\“ refs / heads / master \”,\“ type \”:\“ PATTERN \”,\“ value \”:\“只读\”,\“ groups \”:[\ “ usergroup \”],\“ users \”:[\“ user1 \”]}“” http://Serverip/rest/branch-permissions/1.0/projects/PROJECT/repos/REPO/restricted“
api1.0:
对此进行了尝试并收到错误消息。
糟糕,找不到-Bitbucket窗口。WRM= window.WRM || {}; window.WRM._unparsedData = window.WRM._unparsedData || {}; window.WRM._unparsedErrors = window.WRM。 _unparsedErrors || {}; WRM._unparsedData [“ com.atlassian.plugins.atlassian-plugins-webresource-plugin:context-path.context-path”] =“ \ u0022 \ u0022”; WRM._unparsedData [“ com.atlassian.bitbucket.server.feature-wrm-data:nps.survey.inline.dialog.data”] =“ true”; WRM._unparsedData [“ com.atlassian.bitbucket.server.feature-wrm-data:nps.experiment.enabled.by.sen.data”] =“ false”; WRM._unparsedData [“ com.atlassian.analytics.analytics-client:policy-update-init.policy-update-data-provider”] =“ false”; WRM._unparsedData [“ com.atlassian.analytics.analytics-client:programmatic-analytics-init.programmatic-analytics-data-provider”] =“ false”; WRM._unparsedData [“ com.atlassian.bitbucket.server.feature-wrm-data:user.time.zone.onboarding.data”] =“ true”;
我们非常感谢您的帮助...在此先谢谢您。