Star

Created With

linkJSON Body

Send JSON by specifying type: json and the content property.

⚠️ Note: when using type: json you MUST send the header content-type: application/json

1link - name: create a new user

2link request:

3link path: /users

4link method: post

5link headers:

6link - name: content-type

7link value: application/json

8link payload:

9link body:

10link type: json

11link content:

12link firstName: john

13link lastName: doe

14link response:

15link status_code: 201

See also:



JSON Body

Home

Getting Startedchevron_right
Basicschevron_right
Requestchevron_right

Request Basics Headers Cookies Query Parameters Path Parameters

Payload Bodychevron_right

File Uploads Auto-Retry Additional Options

Response Validationchevron_right

Overview

Assertionschevron_right

Status Code Headers & Cookies

Bodychevron_right
Hooks & JSchevron_right

Overview

Function Typeschevron_right
Suite-Level Hookschevron_right
Spec-Level Hookschevron_right
Contextchevron_right
DRY & Reusing Specschevron_right
Command Line Interface (CLI)chevron_right