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"]
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.
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!
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
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