printTask resource type

Namespace: microsoft.graph

Represents a task that is executing or has been executed as a result of a Universal Print event.

For details about how to use this resource to add pull printing support to Universal Print, see Extending Universal Print to support pull printing.


Method Return type Description
List (from printTaskDefintion) printTask Get a list of tasks that have been created based on a particular printTaskDefinition. The list includes currently running tasks and recently completed tasks.
Get printTask Get details about a print task.
Update printTask Updates a print task.


Property Type Description
id String The printTask's identifier. Read-only.
status printTaskStatus The current execution status of this printTask. The calling application is responsible for updating this status when processing is finished, unless the related printJob has been redirected to another printer. Failure to report completion will result in the related print job being blocked from printing and eventually deleted.
parentUrl String The URL for the print entity that triggered this task. For example,{printerId}/jobs/{jobId}. Read-only.


Relationship Type Description
definition printTaskDefinition The printTaskDefinition that was used to create this task. Read-only.
trigger printTaskTrigger The printTaskTrigger that triggered this task's execution. Read-only.

JSON representation

The following is a JSON representation of the resource.

  "@odata.type": "#microsoft.graph.printTask",
  "id": "String (identifier)",
  "status": {
    "@odata.type": "microsoft.graph.printTaskStatus"
  "parentUrl": "String"