Skip to content
This repository has been archived by the owner on May 10, 2018. It is now read-only.

(low pri) compliance api documentation bug #830

Open
vinyar opened this issue Jun 6, 2016 · 1 comment
Open

(low pri) compliance api documentation bug #830

vinyar opened this issue Jun 6, 2016 · 1 comment

Comments

@vinyar
Copy link

vinyar commented Jun 6, 2016

compliance api will likely change, so filing this so it would show up in google in case anyone hits this issue.
doc: https://docs.chef.io/api_compliance.html#id24

BUG:
POST should not have {} around member list.
curl -X POST "$API_URL/orgs/acme/teams/TEAM_ID/members"
-H "Content-Type: application/json" -H "$AUTH" -d '{["bob"]}'

Should instead be:
curl -X POST "$API_URL/orgs/acme/teams/TEAM_ID/members"
-H "Content-Type: application/json" -H "$AUTH" -d '["bob"]'

@davidwrede
Copy link
Contributor

Hey @vinyar, this change is getting merged in today.

Thanks for the fix!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants