Bug 1311270

Summary: PUT not Post, at least for RoleBinding
Product: OpenShift Container Platform Reporter: Eric Jones <erjones>
Component: DocumentationAssignee: Timothy <tpoitras>
Status: CLOSED NOTABUG QA Contact: weiwei jiang <wjiang>
Severity: low Docs Contact: Vikram Goyal <vigoyal>
Priority: medium    
Version: 3.1.0CC: aos-bugs, jokerman, mmccomas, wjiang, wsun
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1340460 (view as bug list) Environment:
OpenShift Enterprise 3.1
Last Closed: 2016-05-27 00:55:32 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 1340460    

Description Eric Jones 2016-02-23 18:51:30 UTC
Document URL: 
https://access.redhat.com/documentation/en/openshift-enterprise/version-3.1/rest-api-reference/#create-a-rolebinding

Section Number and Name: 
2.2.127. create a RoleBinding

Describe the issue: 
Documentation says you should use POST to create a rolebinding however in testing with the customer, we determined you need PUT instead

Suggestions for improvement: 
Verify if the documentation is correct and we should be using POST (I will log a bug on that if necessary) or if PUT was the intended command, and the documentation needs to be corrected.

Additional Information:
This was specifically done using `curl` and it even had to have -XPUT, not POST or just PUT.

Comment 3 Timothy 2016-05-27 00:55:32 UTC
Thank you so much, Weiwei!

Turns out this is not a bug in the documentation. 

Eric, feel free to log a bug on the product for your original issue.