Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1511545 - edit actions with PATCH and PUT methods are not listed in actions
Summary: edit actions with PATCH and PUT methods are not listed in actions
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: API
Version: 5.9.0
Hardware: Unspecified
OS: Unspecified
Target Milestone: GA
: 5.9.0
Assignee: Jillian Tullo
QA Contact: Martin Kourim
Whiteboard: api:rest
Depends On: 1491336
TreeView+ depends on / blocked
Reported: 2017-11-09 14:39 UTC by Satoe Imaishi
Modified: 2018-03-06 15:10 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1491336
Last Closed: 2018-03-06 15:10:01 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:

Attachments (Terms of Use)

Comment 2 CFME Bot 2017-11-29 20:48:35 UTC
New commit detected on ManageIQ/manageiq-api/gaprindashvili:

commit 5fd0240428e4774ac0d336d004bcf2f99edf71a6
Author:     Alberto Bellotti <>
AuthorDate: Thu Nov 9 08:48:18 2017 -0500
Commit:     Satoe Imaishi <>
CommitDate: Tue Nov 14 17:40:45 2017 -0500

    Merge pull request #179 from jntullo/bz/put_patch_on_edit
    Return put and patch edit actions for resources
    (cherry picked from commit 3931588e5ff27962116f854bd9a3ad5fc6c02e89)

 app/controllers/api/base_controller/renderer.rb | 14 +++++++++++---
 spec/requests/authentications_spec.rb           | 13 ++++++++++---
 spec/requests/custom_actions_spec.rb            |  6 +++---
 3 files changed, 24 insertions(+), 9 deletions(-)

Comment 3 Martin Kourim 2017-12-04 10:55:30 UTC
On edit actions with put and patch are available only for some collections. For e.g. /api/providers it's not available, for /api/services it is available:

GET /api/providers/:id
    "actions": [
            "name": "edit",
            "method": "post",
            "href": "https://<addr>/api/providers/5"
            "name": "refresh",
            "method": "post",
            "href": "https://<addr>/api/providers/5"
            "name": "delete",
            "method": "post",
            "href": "https://<addr>/api/providers/5"
            "name": "delete",
            "method": "delete",
            "href": "https://<addr>/api/providers/5"

Comment 4 Jillian Tullo 2017-12-04 18:45:02 UTC
Hi Martin--

If you look at the api.yml, you'll be able to see when put/patch should be listed. For example, for the providers endpoint, only post is specified ( via *gpd. Therefore, put and patch are not supported at this time. On the other hand, for Services, all of the verbs are specified ( 

Let me know if this provides clarity.

- Jillian

Comment 5 Martin Kourim 2018-02-15 15:53:59 UTC
Thanks for explanation Jillian.

Note You need to log in before you can comment on or make changes to this bug.