Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

110
Vistas
HTTP PUT REQUEST TO API

HI am trying to make an HTTP PUT request to my API. I am getting back the error 405 and 415 depending on how I change the URL.

The ID I am trying to change is 26 and I want to change the testDesc to test5.

Any ideas? Thank you for your time.

function httpPut() {
  $.ajax({
    url: "https://someurl/Test/26",
    type: "PUT",
    'data': {
      testDesc: "test5",
    },
  }).done(function(data) {
    document.getElementById("testingBox7").innerHTML = JSON.stringify(data);
  });
};
about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

I found a solution:

function httpPut(newName) {
  var myString = "https://https://someurl/Test/";
  $.ajax({
    url: myString + newName,
    type: "PUT",
    processData: false,
    contentType: "application/json; charset=UTF-8",
    data: JSON.stringify(data)
  }).done(function(data) {
    document.getElementById("testingBox7").innerHTML = JSON.stringify(data);
  });
};
about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda