Actions
Bug #6674
closedCan't create a host via the API because params aren't correctly wrapped
Difficulty:
Triaged:
Bugzilla link:
Pull request:
Description
When I try the following curl command, I get "Name can't be blank":
$ curl -k -u admin:changeme -H "Content-Type: application/json" -X POST http://localhost:3000/api/v2/hosts -d '{"name": "TEST"}'
It looks like the name param is getting wrapped in params[:base] instead of params[:host].
Updated by The Foreman Bot over 10 years ago
- Status changed from New to Ready For Testing
- Target version set to 1.8.0
- Pull request https://github.com/theforeman/foreman/pull/1597 added
- Pull request deleted (
)
Updated by Daniel Lobato Garcia over 10 years ago
- Status changed from Ready For Testing to Rejected
Updated by Dominic Cleal over 10 years ago
- Related to Bug #5178: Users API requires parameters to be wrapped added
Updated by Dominic Cleal over 10 years ago
- Is duplicate of Bug #6696: API v2 - specify the key in which the parameters would be wrapped rather than passing model name added
Actions