> 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/rest-api.md). Agents can also search and read this documentation through its [MCP server](https://docs.patchmypc.com/~gitbook/mcp).

# REST API reference

Overview of the Patch My PC Cloud Customer API REST operations, with the base URL, authentication, rate limits, errors, and an index of every operation.

[Back to the Cloud Customer API overview](https://docs.patchmypc.com/patch-my-pc-cloud-api)

The Patch My PC Cloud Customer API is a REST API over HTTPS that you can use to search and manage your applications, deployments, and deployment templates. You can call it directly, or use the .NET SDK or the PowerShell module, which call the same operations for you.

The complete OpenAPI 3.0 description of the Cloud Customer API is in [openapi.json](https://3773699522-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MX7dvS0r_4fc0AikgJS%2Fuploads%2FfVbBSSc0oNHTalXkBJOs%2Fopenapi.json?alt=media). You can import it into an API client or a code generator.

## Base URL

Use the host for the region your Patch My PC account is in. Every operation path starts with `/v1/api`:

| Region        | Base URL                                 |
| ------------- | ---------------------------------------- |
| United States | `https://us.portal.patchmypc.com/v1/api` |
| Europe        | `https://eu.portal.patchmypc.com/v1/api` |

The examples in this reference use the US host. If your account is in the EU region, use `https://eu.portal.patchmypc.com` instead. Requests and responses use JSON (`application/json`).

## Authentication

Every operation except [Exchange a personal access token for an access token](https://docs.patchmypc.com/patch-my-pc-cloud-api/rest-api/authentication.md#exchange-a-personal-access-token-for-an-access-token) requires an access token, sent as a bearer token in the `Authorization` header:

{% code collapsedlinecount="10" %}

```http
Authorization: Bearer {access-token}
```

{% endcode %}

To get an access token:

1. [Create a personal access token (PAT)](https://docs.patchmypc.com/patch-my-pc-cloud-api/create-a-personal-access-token.md) in the Patch My PC portal under **Settings** > **Access Tokens**, and choose the scopes your automation needs. A PAT is limited to the scopes it was created with, and never has more access than the user who created it.
2. Exchange the PAT at `POST /v1/api/auth/token` for an access token. The access token is valid for 60 minutes.
3. When a request returns `401 Unauthorized`, or the access token is close to expiring, exchange the PAT again.

Each operation in this reference lists the PAT scope it requires:

| Scope                        | Grants                                                                                          |
| ---------------------------- | ----------------------------------------------------------------------------------------------- |
| `appcatbroker:customer:read` | Read your account information.                                                                  |
| `appcatbroker:apps:read`     | Search and read applications, connections, and application files.                               |
| `appcatbroker:apps:write`    | Create, update, edit, and delete applications. Includes the access of `appcatbroker:apps:read`. |
| `appcatbroker:apps:deploy`   | Read and manage deployments and deployment templates.                                           |

For how to exchange a PAT and send the access token, see [Authentication](https://docs.patchmypc.com/patch-my-pc-cloud-api/authentication.md).

## Rate limits

Requests are rate limited per account, with separate counters for read and write operations. By default, you can make 120 read requests and 20 write requests every 60 seconds. When you exceed a limit, the Cloud Customer API returns `429 Too Many Requests`. Each operation in this reference says which limit it counts against. For details and retry guidance, see [Rate limits](https://docs.patchmypc.com/patch-my-pc-cloud-api/rate-limits.md).

## Errors

Errors are returned with a standard HTTP status code. A request that isn't valid returns `400 Bad Request`, a missing or expired token returns `401 Unauthorized`, and a token without the required permission returns `403 Forbidden`. For the error format and the error codes the SDK and PowerShell module report, see [Errors](https://docs.patchmypc.com/patch-my-pc-cloud-api/errors.md).

## Operations

### Account and connections

| Method | Path                    | Operation                                                                                                                        | PAT scope                    |
| ------ | ----------------------- | -------------------------------------------------------------------------------------------------------------------------------- | ---------------------------- |
| `GET`  | `/v1/api/customer-info` | [Get customer info](https://docs.patchmypc.com/patch-my-pc-cloud-api/rest-api/applications.md#get-customer-info)                 | `appcatbroker:customer:read` |
| `GET`  | `/v1/api/connections`   | [Get available connections](https://docs.patchmypc.com/patch-my-pc-cloud-api/rest-api/applications.md#get-available-connections) | `appcatbroker:apps:read`     |

### Application management

| Method   | Path                             | Operation                                                                                                                                | PAT scope                 |
| -------- | -------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ------------------------- |
| `POST`   | `/v1/api/apps/search`            | [Search applications](https://docs.patchmypc.com/patch-my-pc-cloud-api/rest-api/applications.md#search-applications)                     | `appcatbroker:apps:read`  |
| `GET`    | `/v1/api/apps/{productId}`       | [Get application details](https://docs.patchmypc.com/patch-my-pc-cloud-api/rest-api/applications.md#get-application-details)             | `appcatbroker:apps:read`  |
| `DELETE` | `/v1/api/apps/{productId}`       | [Delete an application](https://docs.patchmypc.com/patch-my-pc-cloud-api/rest-api/applications.md#delete-an-application)                 | `appcatbroker:apps:write` |
| `GET`    | `/v1/api/apps/{productId}/files` | [Get application files](https://docs.patchmypc.com/patch-my-pc-cloud-api/rest-api/applications.md#get-application-files)                 | `appcatbroker:apps:read`  |
| `POST`   | `/v1/api/apps/draft`             | [Create application draft](https://docs.patchmypc.com/patch-my-pc-cloud-api/rest-api/applications.md#create-application-draft)           | `appcatbroker:apps:write` |
| `POST`   | `/v1/api/apps/update-draft`      | [Create update draft](https://docs.patchmypc.com/patch-my-pc-cloud-api/rest-api/applications.md#create-update-draft)                     | `appcatbroker:apps:write` |
| `POST`   | `/v1/api/apps/complete`          | [Complete application creation](https://docs.patchmypc.com/patch-my-pc-cloud-api/rest-api/applications.md#complete-application-creation) | `appcatbroker:apps:write` |
| `PUT`    | `/v1/api/apps/complete`          | [Complete application update](https://docs.patchmypc.com/patch-my-pc-cloud-api/rest-api/applications.md#complete-application-update)     | `appcatbroker:apps:write` |
| `POST`   | `/v1/api/apps/edit-draft`        | [Create edit draft](https://docs.patchmypc.com/patch-my-pc-cloud-api/rest-api/applications.md#create-edit-draft)                         | `appcatbroker:apps:write` |
| `PUT`    | `/v1/api/apps/edit-complete`     | [Complete application edit](https://docs.patchmypc.com/patch-my-pc-cloud-api/rest-api/applications.md#complete-application-edit)         | `appcatbroker:apps:write` |

### Custom applications

| Method   | Path                                | Operation                                                                                                                                              | PAT scope                 |
| -------- | ----------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------- |
| `GET`    | `/v1/api/apps/custom/{productId}`   | [Get custom application details](https://docs.patchmypc.com/patch-my-pc-cloud-api/rest-api/applications.md#get-custom-application-details)             | `appcatbroker:apps:read`  |
| `DELETE` | `/v1/api/apps/custom/{productId}`   | [Delete a custom application](https://docs.patchmypc.com/patch-my-pc-cloud-api/rest-api/applications.md#delete-a-custom-application)                   | `appcatbroker:apps:write` |
| `POST`   | `/v1/api/apps/custom/search`        | [Search custom applications](https://docs.patchmypc.com/patch-my-pc-cloud-api/rest-api/applications.md#search-custom-applications)                     | `appcatbroker:apps:read`  |
| `POST`   | `/v1/api/apps/custom/draft`         | [Create custom application draft](https://docs.patchmypc.com/patch-my-pc-cloud-api/rest-api/applications.md#create-custom-application-draft)           | `appcatbroker:apps:write` |
| `POST`   | `/v1/api/apps/custom/update-draft`  | [Create custom update draft](https://docs.patchmypc.com/patch-my-pc-cloud-api/rest-api/applications.md#create-custom-update-draft)                     | `appcatbroker:apps:write` |
| `POST`   | `/v1/api/apps/custom/complete`      | [Complete custom application creation](https://docs.patchmypc.com/patch-my-pc-cloud-api/rest-api/applications.md#complete-custom-application-creation) | `appcatbroker:apps:write` |
| `PUT`    | `/v1/api/apps/custom/complete`      | [Complete custom application update](https://docs.patchmypc.com/patch-my-pc-cloud-api/rest-api/applications.md#complete-custom-application-update)     | `appcatbroker:apps:write` |
| `POST`   | `/v1/api/apps/custom/edit-draft`    | [Create custom edit draft](https://docs.patchmypc.com/patch-my-pc-cloud-api/rest-api/applications.md#create-custom-edit-draft)                         | `appcatbroker:apps:write` |
| `PUT`    | `/v1/api/apps/custom/edit-complete` | [Complete custom application edit](https://docs.patchmypc.com/patch-my-pc-cloud-api/rest-api/applications.md#complete-custom-application-edit)         | `appcatbroker:apps:write` |

### Public catalog applications

| Method | Path                              | Operation                                                                                                                                  | PAT scope                |
| ------ | --------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------ |
| `GET`  | `/v1/api/apps/public/{productId}` | [Get public application details](https://docs.patchmypc.com/patch-my-pc-cloud-api/rest-api/applications.md#get-public-application-details) | `appcatbroker:apps:read` |
| `POST` | `/v1/api/apps/public/search`      | [Search public applications](https://docs.patchmypc.com/patch-my-pc-cloud-api/rest-api/applications.md#search-public-applications)         | `appcatbroker:apps:read` |

### Deployments

| Method   | Path                                                                       | Operation                                                                                                                                                                      | PAT scope                  |
| -------- | -------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------------------------- |
| `GET`    | `/v1/api/apps/{productId}/deployments`                                     | [Get application deployments](https://docs.patchmypc.com/patch-my-pc-cloud-api/rest-api/applications.md#get-application-deployments)                                           | `appcatbroker:apps:deploy` |
| `POST`   | `/v1/api/apps/{productId}/deployments`                                     | [Create application deployment](https://docs.patchmypc.com/patch-my-pc-cloud-api/rest-api/applications.md#create-application-deployment)                                       | `appcatbroker:apps:deploy` |
| `GET`    | `/v1/api/apps/{productId}/deployments/{deploymentId}`                      | [Get application deployment details](https://docs.patchmypc.com/patch-my-pc-cloud-api/rest-api/applications.md#get-application-deployment-details)                             | `appcatbroker:apps:deploy` |
| `PUT`    | `/v1/api/apps/{productId}/deployments/{deploymentId}`                      | [Edit application deployment](https://docs.patchmypc.com/patch-my-pc-cloud-api/rest-api/applications.md#edit-application-deployment)                                           | `appcatbroker:apps:deploy` |
| `DELETE` | `/v1/api/apps/{productId}/deployments/{deploymentId}`                      | [Delete application deployment](https://docs.patchmypc.com/patch-my-pc-cloud-api/rest-api/applications.md#delete-application-deployment)                                       | `appcatbroker:apps:deploy` |
| `GET`    | `/v1/api/apps/{productId}/deployments/dependency-candidates`               | [Get application deployment dependency candidates](https://docs.patchmypc.com/patch-my-pc-cloud-api/rest-api/applications.md#get-application-deployment-dependency-candidates) | `appcatbroker:apps:deploy` |
| `PUT`    | `/v1/api/apps/{productId}/deployments/{deploymentId}/redeploy`             | [Redeploy application deployment](https://docs.patchmypc.com/patch-my-pc-cloud-api/rest-api/applications.md#redeploy-application-deployment)                                   | `appcatbroker:apps:deploy` |
| `PUT`    | `/v1/api/apps/{productId}/deployments/{deploymentId}/sync`                 | [Sync application deployment](https://docs.patchmypc.com/patch-my-pc-cloud-api/rest-api/applications.md#sync-application-deployment)                                           | `appcatbroker:apps:deploy` |
| `PUT`    | `/v1/api/apps/{productId}/deployments/{deploymentId}/scheduled-sync-pause` | [Set application deployment sync pause status](https://docs.patchmypc.com/patch-my-pc-cloud-api/rest-api/applications.md#set-application-deployment-sync-pause-status)         | `appcatbroker:apps:deploy` |

### Deployment templates

| Method   | Path                                                   | Operation                                                                                                                                    | PAT scope                  |
| -------- | ------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------- |
| `GET`    | `/v1/api/deployments/templates`                        | [Get deployment templates](https://docs.patchmypc.com/patch-my-pc-cloud-api/rest-api/applications.md#get-deployment-templates)               | `appcatbroker:apps:deploy` |
| `POST`   | `/v1/api/deployments/templates`                        | [Create deployment template](https://docs.patchmypc.com/patch-my-pc-cloud-api/rest-api/applications.md#create-deployment-template)           | `appcatbroker:apps:deploy` |
| `GET`    | `/v1/api/deployments/templates/{deploymentTemplateId}` | [Get deployment template details](https://docs.patchmypc.com/patch-my-pc-cloud-api/rest-api/applications.md#get-deployment-template-details) | `appcatbroker:apps:deploy` |
| `PUT`    | `/v1/api/deployments/templates/{deploymentTemplateId}` | [Update deployment template](https://docs.patchmypc.com/patch-my-pc-cloud-api/rest-api/applications.md#update-deployment-template)           | `appcatbroker:apps:deploy` |
| `DELETE` | `/v1/api/deployments/templates/{deploymentTemplateId}` | [Delete deployment template](https://docs.patchmypc.com/patch-my-pc-cloud-api/rest-api/applications.md#delete-deployment-template)           | `appcatbroker:apps:deploy` |

### Authentication

| Method | Path                 | Operation                                                                                                                                                                                | PAT scope     |
| ------ | -------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------- |
| `POST` | `/v1/api/auth/token` | [Exchange a personal access token for an access token](https://docs.patchmypc.com/patch-my-pc-cloud-api/rest-api/authentication.md#exchange-a-personal-access-token-for-an-access-token) | None required |


---

# 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/rest-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.
