Request

Response

    Mutations

    removeRoleFromWorkspaceGroup

    mutation

    Remove FLC role from a group

    Template for Mutation:

    mutation RemoveRoleFromWorkspaceGroup($input: removeRoleFromWorkspaceGroupInput!){
      removeRoleFromWorkspaceGroup(input: $input) {
        # RemoveWorkspaceGroupRolePayload Fields
      }
    }
    

    Arguments

    input*
    * Required

    Possible Returns

    Value TypeDescription
    RemoveWorkspaceGroupRolePayload


    Examples

    Example 1

    Removes a single FLC role (by URN) from a group. To remove multiple roles, call this mutation once per role URN.

    Query:

     mutation RemoveRoleFromWorkspaceGroup($input: RemoveRoleFromWorkspaceGroupInput!) {
     removeRoleFromWorkspaceGroup(input: $input) {
       group {
         id
         name
       }
     }
    }
    
    Show More

    Query Variables:

    {
     "input": {
       "hubId": "urn:adsk.ace:beta.scope:02dd340f-3e84-4db8-b6a1-56a964a202c7",
       "groupId": "566929135",
       "roleUrn": "urn:adsk.plm:tenant.role:YOPMAIL9163.211"
     }
    }
    

    Response:

    {
       "data": {
           "removeRoleFromWorkspaceGroup": null
       },
       "errors": [
           {
               "message": "Failed to remove Role: FLC error: statusCode=404,message=Role not found,errors=[Error[code=NOT_FOUND,message=Role not found]]",
               "path": [],
               "extensions": {
                   "code": "INTERNAL_SERVER_ERROR",
                   "errorType": "UNKNOWN",
                   "service": "mfgdm-project-management"
               }
           }
       ]
    }
    
    Show More