Request

Response

    Mutations

    addLegacyProjectMembers

    mutation

    Add members to a legacy project.

    deprecated Legacy projects are being deprecated. Please switch to the new mutation addFolderLevelProjectMembers.

    Template for Query:

    mutation AddLegacyProjectMembers($input: addLegacyProjectMembersInput!){
      addLegacyProjectMembers(input: $input) {
        #AddLegacyProjectMembers Fields
      }
    }
    

    Arguments

    input*Input object for adding members to a legacy project.
    * Required

    Possible Returns

    Value TypeDescription
    AddLegacyProjectMembersPayload Return payload on add legacy project members operation.


    Examples

    Example 1

    Add Members to a legacy Project

    Query:

     mutation AddLegacyProjectMembers($input: AddLegacyProjectMembersInput!, $pagination: PaginationInput) {
       addLegacyProjectMembers(input: $input) {
           project {
               name
               legacyProjectMembers (pagination: $pagination){
                   results {
                       user {
                           id
                           email
                       }
                   }
                   pagination {
                       cursor
                       pageSize
                   }
               }
           }
       }
    }
    
    Show More

    Query Variables:

    {
       "input": {
           "projectId": "urn:adsk.workspace:beta.project:36be9960-bdbd-4d88-b850-f5d52dd4c2d3",
           "emailAddresses": [
               "chetan.lovanshi@autodesk.com"
           ],
           "role": "EDITOR"
       },
       "pagination": {
           "cursor": "MH41"
       }
    }
    
    Show More

    Response:

    {
       "data": {
           "addLegacyProjectMembers": {
               "project": {
                   "name": "Test Project",
                   "legacyProjectMembers": {
                       "results": [
                           {
                               "user": {
                                   "id": "MHL2DTVKNTQ27PJE",
                                   "email": "demo.docs@yopmail.com"
                               }
                           }
                       ],
                       "pagination": {
                           "cursor": null,
                           "pageSize": 1
                       }
                   }
               }
           }
       }
    }
    
    Show More