Disable STP

fetch(
  '/rest/issuehub/4.0/config/feature.syncPriorities',
  {
      method: 'PUT',
      headers: { 'Content-Type': 'text/plain' },
      body: 'false'
    }
  )
  .then(async response => {
    const isJson = response.headers.get('content-type')?.includes('application/json');

    // check for error response
    if (!response.ok) {

      console.log("#response error "+ data.message)
      // get error message from body or default to response status
      const error = (data && data.message) || response.status;
      return Promise.reject(error);
    }

    console.log("#response");
  })
  .catch(error => {console.error('There was an error!', error);});