PUT
Perform a API PUT request and store the returned value.
PUT sends a full replacement body to an HTTP endpoint and stores the response. Use it to create or replace a resource when the API expects the complete record in the request.
For a walkthrough of auth Headers, storage names, and JSON asserts, see Test APIs in a Flow.

When to use it
Replace an entire record after the UI edits every field.
Seed a known resource state before browser steps run against it.
Assert the response with Check JSON Value using the same storage name.
Configure
Basics
URL
Fully qualified URL, or a Value that expands to one
Body Content-Type
No Body, JSON (application/json) (default), XML (application/xml), XML (text/xml), Plain Text (text/plain), or URL Encoded (x-www-form-urlencoded)
Body (conditional)
Request body (editor matches Content-Type)
Response Storage Name
Name for the stored response (response by default)
Advanced
Headers
Request headers as JSON
Expected Response Status Codes
Defaults to 2xx. Choose 200 or 201 when the API requires them
Response Object
Body (default), Headers, or Complete
Status on fail
Related
Tags: integration, api, put, rest
Last updated