> For the complete documentation index, see [llms.txt](https://cortex-docs.paloaltonetworks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cortex-docs.paloaltonetworks.com/xsoar-8-api/cortex-xsoar-8.x-apis/remote-repository.md).

# Remote Repository

APIs for remote repository management

## Install content on a production tenant

> After the new content is ready and committed to the development tenant, you can install it on the production tenant by using the output from \[Check for new content]\(<https://app.gitbook.com/s/dXXxClt1YkGQlGTYJWdB/cortex-xsoar-8.x-apis/remote-repository#post-xsoar-public-v1-content-checknew>) API as the input in this API.

```json
{"openapi":"3.0.1","info":{"title":"Cortex XSOAR 8 API","version":"XSOAR 8 Cloud"},"tags":[{"name":"Remote repository","description":"APIs for remote repository management"}],"servers":[{"url":"https://api-yourfqdn","description":""}],"paths":{"/xsoar/public/v1/content/install":{"post":{"summary":"Install content on a production tenant","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{}}}}}},"operationId":"post-xsoar-public-v1-content-install","parameters":[{"schema":{"type":"string"},"in":"header","name":"authorization","description":"api_key","required":true},{"schema":{"type":"string"},"in":"header","name":"x-xdr-auth-id","description":"api_key_id","required":true}],"description":"After the new content is ready and committed to the development tenant, you can install it on the production tenant by using the output from [Check for new content](https://app.gitbook.com/s/dXXxClt1YkGQlGTYJWdB/cortex-xsoar-8.x-apis/remote-repository#post-xsoar-public-v1-content-checknew) API as the input in this API.","tags":["Remote repository"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"integer"},"cacheVersn":{"type":"integer"},"sequenceNumber":{"type":"integer"},"primaryTerm":{"type":"integer"},"modified":{"type":"string"},"sizeInBytes":{"type":"integer"},"sortValues":{"type":"array","items":{"type":"string"}},"hashLatest":{"type":"string"},"releaseNotes":{"type":"string"},"releaseDate":{"type":"string"},"release":{"type":"string"},"assetId":{"type":"integer"},"installDate":{"type":"string"},"ignoreGit":{"type":"boolean"},"manual":{"type":"boolean"},"gitId":{"type":"integer"},"Force":{"type":"boolean"}}}}}}}}}}
```

## Check for new content

> Check what new content has been pushed from the development tenant and are available to be installed or updated on the production tenant. All new content is returned in the response and you can verify that the content you expect to see there exists.

```json
{"openapi":"3.0.1","info":{"title":"Cortex XSOAR 8 API","version":"XSOAR 8 Cloud"},"tags":[{"name":"Remote repository","description":"APIs for remote repository management"}],"servers":[{"url":"https://api-yourfqdn","description":""}],"paths":{"/xsoar/public/v1/content/checkNew":{"post":{"summary":"Check for new content","tags":["Remote repository"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"integer"},"cacheVersn":{"type":"integer"},"sequenceNumber":{"type":"integer"},"primaryTerm":{"type":"integer"},"modified":{"type":"string"},"sizeInBytes":{"type":"integer"},"hashLatest":{"type":"string"},"releaseNotes":{"type":"string"},"releaseDate":{"type":"string"},"release":{"type":"string"},"assetId":{"type":"integer"},"installDate":{"type":"string"},"ignoreGit":{"type":"boolean"},"manual":{"type":"boolean"},"gitId":{"type":"integer"},"Force":{"type":"boolean"}}}}}}},"operationId":"post-xsoar-public-v1-content-checkNew","parameters":[{"schema":{"type":"string"},"in":"header","name":"authorization","description":"api_key","required":true},{"schema":{"type":"string"},"in":"header","name":"x-xdr-auth-id","description":"api_key_id","required":true}],"description":"Check what new content has been pushed from the development tenant and are available to be installed or updated on the production tenant. All new content is returned in the response and you can verify that the content you expect to see there exists.","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{}}}}}}}}}
```

## Get a list of content available to be pushed to production

> Get a list of custom content that is available on the development tenant to be pushed to the production tenant.

```json
{"openapi":"3.0.1","info":{"title":"Cortex XSOAR 8 API","version":"XSOAR 8 Cloud"},"tags":[{"name":"Remote repository","description":"APIs for remote repository management"}],"servers":[{"url":"https://api-yourfqdn","description":""}],"paths":{"/xsoar/public/v1/vc/changes/uncommitted":{"get":{"summary":"Get a list of content available to be pushed to production","tags":["Remote repository"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"filename":{"type":"string"},"type":{"type":"string"},"action":{"type":"string"},"message":{"type":"string"},"authorName":{"type":"string"},"authorEmail":{"type":"string"},"when":{"type":"string"},"commitHash":{"type":"string"},"committerName":{"type":"string"},"isCommitted":{"type":"boolean","description":"Whether the content is committed."},"isSystem":{"type":"boolean"},"packID":{"type":"string"},"subType":{"type":"string"},"exclude":{"type":"boolean","description":"Whether this content is excluded."}}}}}}}},"operationId":"get-xsoar-public-v1-vc-changes-uncommitted","parameters":[{"schema":{"type":"string"},"in":"header","name":"authorization","description":"api_key","required":true},{"schema":{"type":"string"},"in":"header","name":"x-xdr-auth-id","description":"api_key_id","required":true}],"description":"Get a list of custom content that is available on the development tenant to be pushed to the production tenant."}}}}
```

## Push custom content to production tenant

> Use the response from \[Get a list of content available to be pushed to production]\(<https://app.gitbook.com/s/dXXxClt1YkGQlGTYJWdB/cortex-xsoar-8.x-apis/remote-repository#get-xsoar-public-v1-vc-changes-uncommitted>) to customize what content you want to push to the production tenant.> \
> Use that customized content as the request in this API. Once this is performed successfully, that content should no longer appear when running \[Get a list of content available to be pushed to production]\(<https://app.gitbook.com/s/dXXxClt1YkGQlGTYJWdB/cortex-xsoar-8.x-apis/remote-repository#get-xsoar-public-v1-vc-changes-uncommitted>).

```json
{"openapi":"3.0.1","info":{"title":"Cortex XSOAR 8 API","version":"XSOAR 8 Cloud"},"tags":[{"name":"Remote repository","description":"APIs for remote repository management"}],"servers":[{"url":"https://api-yourfqdn","description":""}],"paths":{"/xsoar/public/v1/vc/changes/uncommitted/commit":{"post":{"summary":"Push custom content to production tenant","tags":["Remote repository"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"filename":{"type":"string"},"type":{"type":"string"},"action":{"type":"string"},"message":{"type":"string"},"authorName":{"type":"string"},"authorEmail":{"type":"string"},"when":{"type":"string"},"isSystem":{"type":"boolean"},"packID":{"type":"string"}}}}}}}},"operationId":"post-xsoar-public-v1-vc-changes-uncommitted-commit","parameters":[{"schema":{"type":"string"},"in":"header","name":"authorization","description":"api_key","required":true},{"schema":{"type":"string"},"in":"header","name":"x-xdr-auth-id","description":"api_key_id","required":true}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"changes":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"filename":{"type":"string"},"type":{"type":"string"},"action":{"type":"string"},"authorName":{"type":"string"},"authorEmail":{"type":"string"},"when":{"type":"string"}}}},"validateDependencies":{"type":"boolean"}}}}}},"description":"Use the response from [Get a list of content available to be pushed to production](https://app.gitbook.com/s/dXXxClt1YkGQlGTYJWdB/cortex-xsoar-8.x-apis/remote-repository#get-xsoar-public-v1-vc-changes-uncommitted) to customize what content you want to push to the production tenant.\r\nUse that customized content as the request in this API. Once this is performed successfully, that content should no longer appear when running [Get a list of content available to be pushed to production](https://app.gitbook.com/s/dXXxClt1YkGQlGTYJWdB/cortex-xsoar-8.x-apis/remote-repository#get-xsoar-public-v1-vc-changes-uncommitted)."}}}}
```


---

# 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://cortex-docs.paloaltonetworks.com/xsoar-8-api/cortex-xsoar-8.x-apis/remote-repository.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.
