Update task with PUT request returns invalid_request / Parameter is not allowed

Hello,

I'm working with the API and am trying to update the assignees on a task. I'm using the PUT request, which works ok when I'm just updating a title, but as soon as I try to include responsibleIds I get the following,

{
    "errorDescription": "Parameter 'responsibleIds' is not allowed",
    "error": "invalid_request"
}

This is for a PUT request like,

{{WrikeAPI}}/tasks/IEAFZXYZKRD3OBCZ?title=Subtask_5&responsibleIds=["KUAQGSEW"]
I've tried quotes, no quotes, brackets, no brackets, URL encoding and no URL encoding but without success.
 
I can see anybody else who has asked a similar question has been updated with, "You're now talking to support..." in the forum and then no follow-up is posted. As the answer to their questions isn't held in the forum I'm having to ask the same thing again!
1
👍 Spot On 💡 Innovative Approach 💪 Stellar Advice ✅ Solved 🪄 Remove Kudos
Комментариев: 4

The problem was that responsibleIds is a field in the response. To set the assignees, I needed to be using addResponsibles.

Format is as above, i.e. &addResponsibles=["ABCDEF"] 

I URL encode the value so it is actually passed as &addResponsibles=%5B%22ABCDEF%22%5D which also works fine.

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

Hi Ben Gladwyn, thank you for posting your question here. For questions related to API, our experts need to investigate the cases separately to confirm additional details and to make sure users receive an accurate reply.

For this reason, I've opened a ticket with our agents on your behalf and you will be contacted shortly.

Please, feel free to share their reply here so that other users with a similar case could benefit from that information - although it might be necessary for them to still request assistance from our Support Team.

Thank you!

Juan Community Team at Wrike Wrike Product Manager Узнайте о самых популярных функциях Wrike и советах по его использованию

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

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

Hi Juan,
No need to bother your experts, I solved the problem and posted the solution above!

Edit: I edited my response to make it clearer that it is the solution
Many thanks

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

Great to hear that Ben Gladwyn, thank you for posting the solution 🤗

Lisa Community Team at Wrike Wrike Product Manager Become a Wrike expert with Wrike Discover

Lisa Wrike Team member Become a Wrike expert with Wrike Discover

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

Folllowing List for Post: Update task with PUT request returns invalid_request / Parameter is not allowed
[this list is visible for admins and agents only]

Вверх
Didn’t find what you were looking for? Write new post