> For the complete documentation index, see [llms.txt](https://docs.patchmypc.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.patchmypc.com/patch-my-pc-cloud-api.md). Agents can also search and read this documentation through its [MCP server](https://docs.patchmypc.com/~gitbook/mcp).

# Patch My PC Cloud Customer API

Search the Patch My PC catalog, publish custom applications, and manage deployments from your own tools and scripts.

The Patch My PC Cloud Customer API gives your own applications, scripts, and pipelines programmatic access to your Patch My PC cloud account. With the Cloud Customer API you can:

* **Search the Patch My PC catalog** and your own custom applications, and read application details.
* **Create and update custom applications**, including uploading the installer files.
* **Manage deployments** of applications to your Microsoft Intune connections—create, edit, sync, pause, redeploy, and delete them.
* **Automate without a person at the keyboard** by using personal access tokens (PATs) that carry only the scopes a job needs.

## Choose how to use the Cloud Customer API

You can reach the same operations in three ways. Pick the one that fits your tooling—all three use the same account, permissions, and rate limits.

| Surface                               | Best for                                                                          | Authentication                                              |
| ------------------------------------- | --------------------------------------------------------------------------------- | ----------------------------------------------------------- |
| REST API                              | Any language or platform that can send HTTPS requests                             | Access token obtained by exchanging a personal access token |
| .NET SDK (`PatchMyPC.Cloud`)          | .NET 8 and .NET 10 applications                                                   | Personal access token                                       |
| PowerShell module (`PatchMyPC.Cloud`) | Administrators and scripts on PowerShell 7.4 or later on Windows, macOS, or Linux | Personal access token                                       |

{% content-ref url="/pages/1OJ0oYxCjA8rbonPL82p" %}
[REST API reference](https://docs.patchmypc.com/patch-my-pc-cloud-api/rest-api.md)
{% endcontent-ref %}

{% content-ref url="/pages/A685wmxHVxNeH1uiDbIR" %}
[.NET SDK](https://docs.patchmypc.com/patch-my-pc-cloud-api/sdk.md)
{% endcontent-ref %}

{% content-ref url="/pages/xZblqagImlB5x0Y4z3Fe" %}
[PowerShell module](https://docs.patchmypc.com/patch-my-pc-cloud-api/powershell.md)
{% endcontent-ref %}

## Contents

### Start here

* [Getting started](https://docs.patchmypc.com/patch-my-pc-cloud-api/getting-started.md) walks you through the prerequisites and your first call.
* [Authentication](https://docs.patchmypc.com/patch-my-pc-cloud-api/authentication.md) explains how to exchange a personal access token for an access token and send it with each request.
* [Create a personal access token](https://docs.patchmypc.com/patch-my-pc-cloud-api/create-a-personal-access-token.md) shows how to create, view, and revoke tokens in the Patch My PC portal.
* [Errors](https://docs.patchmypc.com/patch-my-pc-cloud-api/errors.md) describes the status codes and error codes the Cloud Customer API returns.
* [Rate limits](https://docs.patchmypc.com/patch-my-pc-cloud-api/rate-limits.md) describes how much traffic the Cloud Customer API accepts and how to retry.

### Guides

* [Search the catalog](https://docs.patchmypc.com/patch-my-pc-cloud-api/guides/search-the-catalog.md)
* [Create a custom application](https://docs.patchmypc.com/patch-my-pc-cloud-api/guides/create-a-custom-application.md)
* [Create and deploy a custom application with REST](https://docs.patchmypc.com/patch-my-pc-cloud-api/guides/create-a-custom-application-with-rest.md)
* [Update an application](https://docs.patchmypc.com/patch-my-pc-cloud-api/guides/update-an-application.md)
* [Deploy an application](https://docs.patchmypc.com/patch-my-pc-cloud-api/guides/deploy-an-application.md)
* [Automate with a personal access token](https://docs.patchmypc.com/patch-my-pc-cloud-api/guides/automate-with-a-personal-access-token.md)

### REST API

* [REST API reference](https://docs.patchmypc.com/patch-my-pc-cloud-api/rest-api.md)
  * [Authentication](https://docs.patchmypc.com/patch-my-pc-cloud-api/rest-api/authentication.md)
  * [Applications](https://docs.patchmypc.com/patch-my-pc-cloud-api/rest-api/applications.md)

### .NET SDK

* [.NET SDK](https://docs.patchmypc.com/patch-my-pc-cloud-api/sdk.md)
  * [Install and configure the SDK](https://docs.patchmypc.com/patch-my-pc-cloud-api/sdk/install-and-configure.md)
  * [Results and errors](https://docs.patchmypc.com/patch-my-pc-cloud-api/sdk/results-and-errors.md)
  * [SDK authentication methods](https://docs.patchmypc.com/patch-my-pc-cloud-api/sdk/authentication.md)
  * [Customer information and connections](https://docs.patchmypc.com/patch-my-pc-cloud-api/sdk/customer-and-connections.md)
  * [Applications](https://docs.patchmypc.com/patch-my-pc-cloud-api/sdk/applications.md)
  * [Custom applications](https://docs.patchmypc.com/patch-my-pc-cloud-api/sdk/custom-applications.md)
  * [Deployments](https://docs.patchmypc.com/patch-my-pc-cloud-api/sdk/deployments.md)
  * [Deployment templates](https://docs.patchmypc.com/patch-my-pc-cloud-api/sdk/deployment-templates.md)

### PowerShell module

* [PowerShell module](https://docs.patchmypc.com/patch-my-pc-cloud-api/powershell.md)
  * [Connect-PmpcCloudWithPat](https://docs.patchmypc.com/patch-my-pc-cloud-api/powershell/connect-pmpccloudwithpat.md)
  * [Disconnect-PmpcCloud](https://docs.patchmypc.com/patch-my-pc-cloud-api/powershell/disconnect-pmpccloud.md)
  * [Find-PmpcApplication](https://docs.patchmypc.com/patch-my-pc-cloud-api/powershell/find-pmpcapplication.md)
  * [Find-PmpcCustomApplication](https://docs.patchmypc.com/patch-my-pc-cloud-api/powershell/find-pmpccustomapplication.md)
  * [Get-PmpcApplication](https://docs.patchmypc.com/patch-my-pc-cloud-api/powershell/get-pmpcapplication.md)
  * [Get-PmpcApplicationFile](https://docs.patchmypc.com/patch-my-pc-cloud-api/powershell/get-pmpcapplicationfile.md)
  * [Get-PmpcCloudSession](https://docs.patchmypc.com/patch-my-pc-cloud-api/powershell/get-pmpccloudsession.md)
  * [Get-PmpcConnection](https://docs.patchmypc.com/patch-my-pc-cloud-api/powershell/get-pmpcconnection.md)
  * [Get-PmpcCustomApplication](https://docs.patchmypc.com/patch-my-pc-cloud-api/powershell/get-pmpccustomapplication.md)
  * [Get-PmpcCustomerInfo](https://docs.patchmypc.com/patch-my-pc-cloud-api/powershell/get-pmpccustomerinfo.md)
  * [Get-PmpcDeployment](https://docs.patchmypc.com/patch-my-pc-cloud-api/powershell/get-pmpcdeployment.md)
  * [Get-PmpcDeploymentDependencyCandidate](https://docs.patchmypc.com/patch-my-pc-cloud-api/powershell/get-pmpcdeploymentdependencycandidate.md)
  * [Get-PmpcDeploymentTemplate](https://docs.patchmypc.com/patch-my-pc-cloud-api/powershell/get-pmpcdeploymenttemplate.md)
  * [Get-PmpcSelectedCompany](https://docs.patchmypc.com/patch-my-pc-cloud-api/powershell/get-pmpcselectedcompany.md)
  * [Get-PmpcSelectedConnection](https://docs.patchmypc.com/patch-my-pc-cloud-api/powershell/get-pmpcselectedconnection.md)
  * [New-PmpcCustomApplication](https://docs.patchmypc.com/patch-my-pc-cloud-api/powershell/new-pmpccustomapplication.md)
  * [New-PmpcDeployment](https://docs.patchmypc.com/patch-my-pc-cloud-api/powershell/new-pmpcdeployment.md)
  * [New-PmpcDeploymentAppInfo](https://docs.patchmypc.com/patch-my-pc-cloud-api/powershell/new-pmpcdeploymentappinfo.md)
  * [New-PmpcDeploymentAssignment](https://docs.patchmypc.com/patch-my-pc-cloud-api/powershell/new-pmpcdeploymentassignment.md)
  * [New-PmpcDeploymentConfiguration](https://docs.patchmypc.com/patch-my-pc-cloud-api/powershell/new-pmpcdeploymentconfiguration.md)
  * [New-PmpcDeploymentRequirement](https://docs.patchmypc.com/patch-my-pc-cloud-api/powershell/new-pmpcdeploymentrequirement.md)
  * [New-PmpcDeploymentReturnCode](https://docs.patchmypc.com/patch-my-pc-cloud-api/powershell/new-pmpcdeploymentreturncode.md)
  * [New-PmpcDeploymentTemplate](https://docs.patchmypc.com/patch-my-pc-cloud-api/powershell/new-pmpcdeploymenttemplate.md)
  * [New-PmpcDetectionRule](https://docs.patchmypc.com/patch-my-pc-cloud-api/powershell/new-pmpcdetectionrule.md)
  * [New-PmpcFileRule](https://docs.patchmypc.com/patch-my-pc-cloud-api/powershell/new-pmpcfilerule.md)
  * [New-PmpcRegistryRule](https://docs.patchmypc.com/patch-my-pc-cloud-api/powershell/new-pmpcregistryrule.md)
  * [New-PmpcRequirement](https://docs.patchmypc.com/patch-my-pc-cloud-api/powershell/new-pmpcrequirement.md)
  * [New-PmpcScriptRule](https://docs.patchmypc.com/patch-my-pc-cloud-api/powershell/new-pmpcscriptrule.md)
  * [Remove-PmpcCustomApplication](https://docs.patchmypc.com/patch-my-pc-cloud-api/powershell/remove-pmpccustomapplication.md)
  * [Remove-PmpcDeployment](https://docs.patchmypc.com/patch-my-pc-cloud-api/powershell/remove-pmpcdeployment.md)
  * [Remove-PmpcDeploymentTemplate](https://docs.patchmypc.com/patch-my-pc-cloud-api/powershell/remove-pmpcdeploymenttemplate.md)
  * [Restart-PmpcDeployment](https://docs.patchmypc.com/patch-my-pc-cloud-api/powershell/restart-pmpcdeployment.md)
  * [Resume-PmpcDeployment](https://docs.patchmypc.com/patch-my-pc-cloud-api/powershell/resume-pmpcdeployment.md)
  * [Set-PmpcConnection](https://docs.patchmypc.com/patch-my-pc-cloud-api/powershell/set-pmpcconnection.md)
  * [Set-PmpcCustomApplication](https://docs.patchmypc.com/patch-my-pc-cloud-api/powershell/set-pmpccustomapplication.md)
  * [Set-PmpcDeployment](https://docs.patchmypc.com/patch-my-pc-cloud-api/powershell/set-pmpcdeployment.md)
  * [Set-PmpcDeploymentTemplate](https://docs.patchmypc.com/patch-my-pc-cloud-api/powershell/set-pmpcdeploymenttemplate.md)
  * [Suspend-PmpcDeployment](https://docs.patchmypc.com/patch-my-pc-cloud-api/powershell/suspend-pmpcdeployment.md)
  * [Sync-PmpcDeployment](https://docs.patchmypc.com/patch-my-pc-cloud-api/powershell/sync-pmpcdeployment.md)
  * [Test-PmpcCloudHealth](https://docs.patchmypc.com/patch-my-pc-cloud-api/powershell/test-pmpccloudhealth.md)
  * [Update-PmpcCustomApplication](https://docs.patchmypc.com/patch-my-pc-cloud-api/powershell/update-pmpccustomapplication.md)

### Reference

* [Cross-reference: cmdlets, SDK methods, and REST operations](https://docs.patchmypc.com/patch-my-pc-cloud-api/cross-reference.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.patchmypc.com/patch-my-pc-cloud-api.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
