printer: restoreFactoryDefaults

Namespace: microsoft.graph

Important

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.

Restore a printer's default settings to the values specified by the manufacturer.

Permissions

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

To use the Universal Print service, the user or app's tenant must have an active Universal Print subscription, in addition to the permissions listed in the following table. 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}/restoreFactoryDefaults

Request headers

Name Description
Authorization Bearer {token}. Required.

Request body

Do not supply a request body for this method.

Response

If successful, this method returns a 204 No Content response code. It does not return anything in the response body.

Examples

Request

POST https://graph.microsoft.com/v1.0/print/printers/{printerId}/restoreFactoryDefaults

Response

HTTP/1.1 204 No Content