Import/export of a document/document types from one env to another env

Hi team,

I have a requirement of import/export of a document/document types from one environment to another environment through api. I have choosen my local as one env and also I have installed blommreach on remote machine as a second env, I have follow some step to manually import/export documents among them.

  1. In first env I created a document, downlaoded through below api
    http://localhost:8080/cms/ws/exim/export/
    In body I passed only params as a attachement and it contains :
    {
    “documents”: {
    “queries”: [
    ‘/jcr:root/content/documents/xyz/doc1/import3//element(*,hippo:document)’
    ]
    }
    }

my file downloaded
2. After that I copied downloaded document to remote machine then uploaded through below api

http://localhost:8080/cms/ws/exim/import/
In body I passed only package as a attachement and referenced to downloaded document in remote machine.

As a result document uploaded successfully.

Above process was for uploading document , please correct me if I am doing in a wrong way.

Like document now I need to export and import document types through api but no luck, I am getting error, is there a same way of doing import or export(might I am missing some parameters that will allow to import or export document types) or I need to follow some other steps. Need your suggestions here, will be appreciated.

The ability to import and export content types via API is available in our SaaS product, but not in the brXM on-prem / PaaS product. The expected mechanism for updating content types in brXM is via the deployment and bootstrapping mechanisms that require a process restart. More details are documented below. We tend to refer to this by the term “namespace”, since content types are typically organized into CND files that include multiple types organized by a common name prefix.

Note that you can still update content types without site downtime, but this requires more than one cluster node for hosting. There are also some updates that are best to handle in blue-green style deployments, if they require significant rewriting of existing content.

Thanks @PCentgraf,

I gone through shared link but sorry to say still I am unable to understand how I can achieve my requirments through deployment and bootstrapping mechanisms.

can you please help me more or provide any example for the documenttypes import/export.