Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

patch request 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())
  }
 
PREVIOUS NEXT
Tagged: #patch #request #javascript
ADD COMMENT
Topic
Name
7+7 =