Skip to main content
sethuanand2626
Level 3
Aug 20, 2024 5:12 AM UTC
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?

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.

5 replies

Level 2
Aug 20, 2024 6:32 PM UTC

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?

 

 

Translate
Aug 20, 2024 6:48 PM UTC
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.
Translate
Level 2
Aug 20, 2024 7:06 PM UTC

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

Translate