Request

Response

    Mutations

    archiveProject

    mutation

    Archive a project in a hub.

    Template for Mutation:

    mutation ArchiveProject($input: archiveProjectInput!){
      archiveProject(input: $input) {
        # ArchiveProjectPayload Fields
      }
    }
    

    Arguments

    input*Input for archiving a project in a hub.
    * Required

    Possible Returns

    Value TypeDescription
    ArchiveProjectPayload Return payload for archiving a project operation.


    Examples

    Example 1

    Achieve a active project

    Query:

     mutation ArchiveProject($input: ArchiveProjectInput!) {
       archiveProject(input: $input) {
           project {
               id
           }
       }
    }
    

    Query Variables:

    {
       "input": {
           "projectId": "urn:adsk.workspace:beta.project:e0b62c50-ed1d-4322-a951-a05e2d75845a"
       }
    }
    

    Response:

    {
       "data": {
           "archiveProject": {
               "project": {
                   "id": "urn:adsk.workspace:beta.project:e0b62c50-ed1d-4322-a951-a05e2d75845a"
               }
           }
       }
    }
    
    Show More