Патч запрос JavaScript

const PATCH = (id) => {
    fetch(`Your link here/${id}`, {
      //requires an id to patch
      method: `PATCH`,
      body: JSON.stringify({
        //your data here
      }),
      headers: { 'Content-type': `application/json; charset=UTF-8` },
    }).then((response) => response.json())
  }
Disgusted Dogfish