I am having a bit of an issue and I hope someone can help me. I have tasks that belong to multiple projects, and I am running an API that allocates them to a specific section in one project, leaving the other projects’ membership unchanged.
While @Frederic_Malenfant ‘s approach is the way to go, one nuance to keep in mind: the memberships property on a task isn’t writable via PUT. You can set memberships only at creation time (POST) to place the task into multiple project/section pairs, but not after the task is created.
If you were to include this property in a POST, you should just reference project/sections GIDs directly, no need to wrap them in objects:
Thank you @Mikhail_Melikhov - this explains something I observed. I came across this payload in another thread, I tried it and the command actually “succeeded” (no errors), but it didn’t actually update the task. Thank you!