Request

Response

    Mutations

    addGroupsToTaskBoard

    mutation

    Adds one or more groups to a task board.

    Template for Mutation:

    mutation AddGroupsToTaskBoard($input: AddGroupsToTaskBoardInput!) {
      addGroupsToTaskBoard(input: $input) {
        board {
          id
        }
      }
    }
    

    Arguments

    input*Input object containing the board ID, role, and group IDs to add.
    * Required

    Possible Returns

    Value TypeDescription
    AddGroupsToTaskBoardPayload Return payload for the addGroupsToTaskBoard mutation.


    Examples

    Example 1

    Grants one or more groups access to a board. Every member of the group becomes assignable with source: GROUP. Requires environment variable(s): groupId.

    Query:

     mutation AddGroupsToTaskBoard($input: AddGroupsToTaskBoardInput!) {
     addGroupsToTaskBoard(input: $input) {
       board {
         id
         groups {
           results {
             role
             group {
               id
             }
           }
         }
       }
     }
    }
    
    Show More

    Query Variables:

    {
     "input": {
       "hubId": "urn:adsk.ace:beta.scope:02dd340f-3e84-4db8-b6a1-56a964a202c7",
       "boardId": "EwgH0qjTZmhD3JEW0iU4VK_aga",
       "groupRole": "MEMBER",
       "groupIds": [
         "572397749"
       ]
     }
    }
    
    Show More

    Response:

    {
       "data": {
           "addGroupsToTaskBoard": {
               "board": null
           }
       }
    }