When I use the code below, I'm able to erase the existing project sharing and create a new project sharing. Instead of removing the old project sharing and adding a new one, how can I update the project sharing? | Community
Skip to main content
sethuanand2626
Level 3
August 20, 2024
Question

When I use the code below, I'm able to erase the existing project sharing and create a new project sharing. Instead of removing the old project sharing and adding a new one, how can I update the project sharing?

  • August 20, 2024
  • 1 reply
  • 963 views

When I use the code below, I'm able to erase the existing project sharing and create a new project sharing.

 

Instead of removing the old project sharing and adding a new one, how can I update the project sharing?

 

Code I'm using in Workfront API Body:

 

{
"accessRules": [

{
"accessorID": "64bad82634543dda7e63de881230fc",
"accessorObjCode": "TEAMOB",
"coreAction": "EDIT"
}
}

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

Level 2
August 20, 2024

The TEAMOB  object code references a Team object, not a Project. I am not sure how this could have any effect on Project settings.

 

Can you be more specific? What endpoint are you sending this to?

 

 

August 20, 2024
If Project is shared with "Team A". I want to add project sharing with "Team B". If I use code I mentioned screenshot, it replace "Team A" with "Team B".
 
I hope this clarifies you.
Level 2
August 20, 2024

I see. Try using the coreAction of "ADD" in place of EDIT.