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
👍 Spot On 💡 Innovative Approach 💪 Stellar Advice ✅ Solved 🪄 Remove Kudos
Комментариев: 2

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 Wrike Product Manager Узнайте о самых популярных функциях Wrike и советах по его использованию

Pavel M Wrike Team member Узнайте о самых популярных функциях Wrike и советах по его использованию

3
👍 Spot On 💡 Innovative Approach 💪 Stellar Advice ✅ Solved 🪄 Remove Kudos

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
👍 Spot On 💡 Innovative Approach 💪 Stellar Advice ✅ Solved 🪄 Remove Kudos

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