Request

Response

    Mutations

    deleteTaskStatus

    mutation

    Deletes a custom task status row. System rows (isSystem: true) must not be deleted; clients should reassign tasks first when deleting a custom status.

    Template for Mutation:

    mutation DeleteTaskStatus($hubId: ID!, $taskStatusId: ID!) {
      deleteTaskStatus(hubId: $hubId, taskStatusId: $taskStatusId) {
        taskStatusId
      }
    }
    

    Arguments

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

    Possible Returns

    Value TypeDescription
    DeleteTaskStatusPayload Return payload for the deleteTaskStatus mutation.


    Examples

    Example 1

    Deletes a custom status column. System statuses (isSystem: true) cannot be deleted. Reassign tasks before deleting their status.

    Query:

     mutation DeleteTaskStatus($hubId: ID!, $taskStatusId: ID!) {
     deleteTaskStatus(hubId: $hubId, taskStatusId: $taskStatusId) {
       taskStatusId
     }
    }
    

    Query Variables:

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

    Illustrative response

    {
      "data": {
        "deleteTaskStatus": {
          "taskStatusId": "EwgH0qjTZmhD3JEW0iU4VK_aga:IN_REVIEW"
        }
      }
    }