Ask Your Question
0

Should I use PATCH or PUT method to update a domain?

asked 2013-07-10 12:33:45 -0600

I’m trying to update a domain with PUT but the request is returning 404 Not Found, however, I was able to update it with PATCH. Is that the expected behavior? So, PUT is not supported?

PATCH v3/domains/a7ec266429b54643b0682f1c8c0ff38e

Body:

{ "domain": { "description": "This is my domain", "enabled": true, "name": "MyDomainUpdated" } }

Status 200 OK Response:

{ "domain": { "enabled": true, "description": "This is my domain", "name": "MyDomainUpdated", "id": "a7ec266429b54643b0682f1c8c0ff38e" } }

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

answered 2013-07-10 16:55:40 -0600

I talked to Lin Hua Cheng who told me that PATCH is the correct method to update a domain, so I'm closing this question. PUT is only used for creating association of entities (creating user assignment to role, groups)."

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2013-07-10 12:33:45 -0600

Seen: 20 times

Last updated: Jul 10 '13