Create printTaskTrigger

Namespace: microsoft.graph


Microsoft is offering usage of the cloud printing APIs to manage Universal Print at no charge and there are no foreseeable plans to charge for the use of these APIs.

Create a new task trigger on the specified printer. Currently, only one task trigger can be specified per printer, but this limit may be removed in the future.


One of the following permissions is required to call this API. To learn more, including how to choose permissions, see Permissions.

In addition to the following permissions, the user's tenant must have an active Universal Print subscription. The signed in user must be a Printer Administrator.

Permission type Permissions (from least to most privileged)
Delegated (work or school account) Printer.ReadWrite.All, Printer.FullControl.All
Delegated (personal Microsoft account) Not Supported.
Application Not Supported.

HTTP request

POST /print/printers/{printerId}/taskTriggers

Request headers

Name Description
Authorization Bearer {token}. Required.
Content-Type application/json. Required.

Request body

In the request body, supply a JSON representation of a printTaskTrigger object. Supply a reference to a printTaskDefinition by using the @odata.bind format, as shown in the following example.


If successful, this method returns a 201 Created response code and a printTaskTrigger in the response body.



Content-Type: application/json
Content-length: 80

  "event": "jobStarted",
  "definition@odata.bind": "{taskDefinitionId}"


Note: The response object shown here might be shortened for readability.

HTTP/1.1 201 Created
Content-Type: application/json

  "@odata.context": "$metadata#Collection(Microsoft.Graph.PrintTaskTrigger)",
  "id": "b6a843ca-e60e-4e20-a222-a58d85eead6d",
  "event": "jobStarted"