Edit

pullPrintPrinter: restoreFactoryDefaults

Namespace: microsoft.graph

Restore the default settings of a pullPrintPrinter to the values specified by the manufacturer.

Permissions

Choose the permission or permissions marked as least privileged for this API. Use a higher privileged permission or permissions only if your app requires it. For details about delegated and application permissions, see Permission types. To learn more about these permissions, see the permissions reference.

Permission type Least privileged permission Higher privileged permissions
Delegated (work or school account) PullPrintPrinter.ReadWrite.All PullPrintPrinter.FullControl.All
Delegated (personal Microsoft account) Not supported. Not supported.
Application Not supported. Not supported.

Important

For delegated access using work or school accounts, the signed-in user must have a tenant-wide assignment to a supported Microsoft Entra role. Printer Administrator is the least privileged role supported for this operation.

HTTP request

POST /print/pullPrintPrinters/{pullPrintPrinterId}/restoreFactoryDefaults
POST /print/operations/{printOperationId}/pullPrintPrinter/restoreFactoryDefaults

Request headers

Name Description
Authorization Bearer {token}. Required. Learn more about authentication and authorization.

Request body

Don't supply a request body for this method.

Response

If successful, this action returns a 204 No Content response code.

Examples

Request

The following example shows a request.

POST https://graph.microsoft.com/v1.0/print/pullPrintPrinters/15037699-acf2-2dbb-b20c-897053051345/restoreFactoryDefaults

Response

The following example shows the response.

HTTP/1.1 204 No Content