PUT Request

This operation makes a PUT request to a specified url.

This procedure is part of the HTTP Book (BDK). To use this book, you need to learn it in your agent first.

Input Concepts

Concept
Description
Type
Required

url

The URL to make the PUT request to.

text

Yes

payload

The payload to include in the request.

file | list of | text

Yes

headers

The headers to include in the request. For example {"Authorization": "Bearer <token>"}. Note: If connect is set, the "Authorization" header will be added automatically to the request, and a manually set "Authorization" header will be ignored.

No

Output Concepts

Concept
Description
Type

answer

The response from the PUT request.

file or list of or text

Examples

  1. Update a post with the following details

create a json
use the above as the post json
set the post json's title to "My Post Title edited"
set the post json's body to "Awesome Body"
set the post json's userId to 1
put the post json on "https://jsonplaceholder.typicode.com/posts/1"
  1. Update a post with an Authentication header

create a json
use the above as the post json
set the post json's title to "My Post Title edited"
set the post json's body to "Awesome Body"
set the post json's userId to 1
create a json
use the above as the headers input
set the headers input's "Authentication" to "Bearer <token>"
put the post json to "https://jsonplaceholder.typicode.com/posts"
... the headers is the headers input

Last updated

Was this helpful?