Ask Your Question
0

How to I perform PUT action using REST API

asked 2013-12-09 22:29:48 -0500

Akhil gravatar image

I am unable to perform PUT operations present in the following link.

http://docs.puppetlabs.com/guides/rest_api.html

Suppose I am trying to perform "PUT /{environment}/certificate_status/{certname}" action. I am using POSTMAN app in the chrome for testing. Using this app i am trying to perform PUT operation, along with setting a parameter, but unable to do so. the POSTMAN app for PUT operation, sends the data in 3 formats named 1. Form-data, 2. raw, 3. x-www-form-urlencoded

For my action i need to pass the value {desired_state":"revoked}.

Can you suggest how can i pass the value and ... (more)

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-12-10 10:54:47 -0500

lavaman gravatar image

updated 2013-12-10 10:54:58 -0500

Try selecting raw and then to the right of the format buttons there should be a drop-down menu that allows you to choose application/json. That should allow you to put the value you need.

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

Question Tools

1 follower

Stats

Asked: 2013-12-09 22:29:48 -0500

Seen: 269 times

Last updated: Dec 10 '13