patch( url, [body], [params] )
Returns
Example
import http from 'k6/http';
const url = 'https://quickpizza.grafana.com/api/patch';
export default function () {
const headers = { 'Content-Type': 'application/json' };
const data = { name: 'Bert' };
const res = http.patch(url, JSON.stringify(data), { headers: headers });
console.log(JSON.parse(res.body).name);
}