setResourceResponsibilities
Replaces the people responsible for a resource on a project with the given list. Requires edit access to the project. Returns the assignment.
Arguments
projectIdID!ID of the project.
resourceIdID!ID of the assigned resource.
responsibilities[ResourceResponsibilityInput!]!The complete list of responsibilities. An empty list removes them all.
Returns
ProjectResourceAssignment!Example
mutation SetResourceResponsibilities($projectId: ID!, $resourceId: ID!, $responsibilities: [ResourceResponsibilityInput!]!) {
setResourceResponsibilities(
projectId: $projectId
resourceId: $resourceId
responsibilities: $responsibilities
) {
id
projectId
resourceId
}
}