Cannot figure out PUT requests

Hello,

GET and POST are working fine for me, but I am having trouble getting PUT requests to work.


When I send this request to modify a task, it returns a 200 with the task data in JSON, but nothing changes except for updatedDate. I tried different parameters but nothing is changing. It feels like I'm missing something obvious but it's been 2 hours and I'm stumped. Can anyone see what I am doing wrong?

1
2 comentarios
Spot On Innovative Approach Stellar Advice
Avatar

Hi Sangbin! Have you tried to URl-encode parameters? Wrike's API will not recognise them in JSON body I am afraid. 

URL for PUT could look like this:

https://www.wrike.com/api/v3/tasks/ID?title=NewTitle

Pavel M Community Team at Wrike Infórmate sobre las funciones y prácticas recomendadas de Wrike

3
Acciones de comentarios Permalink
Spot On Innovative Approach Stellar Advice
Avatar

Hello Pavel,

Thank you for the reply. I actually tried the way before but because it had a space in the url, it was giving me 400 error so I thought it was not the correct way.

Replacing any spaces with %20 seems to work fine. (But + doesn't seem to work?)

0
Acciones de comentarios Permalink

Folllowing List for Post: Cannot figure out PUT requests
[this list is visible for admins and agents only]

Didn’t find what you were looking for? Write new post