Request

Response

    Mutations

    deleteTask

    mutation

    Deletes a task.

    Template for Mutation:

    mutation DeleteTask($hubId: ID!, $taskId: ID!) {
      deleteTask(hubId: $hubId, taskId: $taskId) {
        taskId
      }
    }
    

    Arguments

    hubId*
    ID non-null
    The CommonWorkspace hub ID (a.k.a. ACE scope URN) of the hub that contains the task.
    taskId*
    ID non-null
    The unique identifier of the task to delete.
    * Required

    Possible Returns

    Value TypeDescription
    DeleteTaskPayload Return payload for the deleteTask mutation.


    Examples

    Example 1

    Deletes a task. Returns the deleted taskId. A null payload with no errors entry is not expected; inspect the top-level errors array to distinguish failure from an empty result.

    Query:

     mutation DeleteTask($hubId: ID!, $taskId: ID!) {
     deleteTask(hubId: $hubId, taskId: $taskId) {
       taskId
     }
    }
    

    Query Variables:

    {
     "hubId": "urn:adsk.ace:beta.scope:02dd340f-3e84-4db8-b6a1-56a964a202c7",
     "taskId": "NgwRgSdC1VjONh8Ts9eoRK_aga"
    }
    

    Response:

    {
       "data": {
           "deleteTask": {
               "taskId": "NgwRgSdC1VjONh8Ts9eoRK_aga"
           }
       }
    }