js add body data to put request code example Example: js add body data to put request fetch(url, { method: 'PUT', body: "any type of data" });