Skip to main content
Mutation

setProjectContactAccessRole

Sets an assignment’s ordinary project role and optionally its translation scopes. Null removes only the ordinary role; omitted scopes are preserved and an empty list clears them. Requires people edit and project management access; changing scopes also requires edit access to their old and new areas. Giving an editing role to a linked account outside the space uses an editor seat of the space's plan.

Arguments

  • contactIdID!

    ID of the assigned contact.

  • projectIdID!

    ID of the project.

  • The ordinary project role to give, or null for no ordinary role.

  • translationGrants[ProjectTranslationGrantInput!]

    Translation scopes. Omit to preserve, or use an empty list to clear.

Returns

ProjectContactAssignment!

Example

mutation SetProjectContactAccessRole($contactId: ID!, $projectId: ID!, $role: ProjectRoleId, $translationGrants: [ProjectTranslationGrantInput!]) {
  setProjectContactAccessRole(
    contactId: $contactId
    projectId: $projectId
    role: $role
    translationGrants: $translationGrants
  ) {
    accessRole
    contactId
    createdAt
    department
    id
    kind
    projectId
    role
  }
}