Invoke > Publishing Application Integration assets in bulk
  

Publishing Application Integration assets in bulk

You can use the publish resource to publish a single Application Integration asset or multiple Application Integration assets simultaneously and save time. You can publish processes, guides, app connections, and service connectors in bulk.
The assets are published in the same order as given in the request payload. You can publish a maximum of 199 assets at a time.
    1In a REST client, use a POST request with the following URL:
    <Cloud Application Integration POD URL>/active-bpel/asset/v1/publish
    2Add the following headers:
    Key
    Value
    Accept
    application/vnd.api+json
    Content-Type
    application/vnd.api+json
    INFA-SESSION-ID
    Use the login resource to get the session ID. For more information about the login resource, see REST API Reference in the Data Integration help.
    3In the body, use the assetPaths attribute to specify one or more locations and names of the Application Integration assets that you want to publish.
    Use the following format:
    {

    "data": {
    "type": "publish",
    "attributes": {
    "assetPaths": [
    "Explore/<location-of-the-process>/<name-of-the-process>.PROCESS.xml",
    "Explore/<location-of-the-guide>/<name-of-the-guide>.GUIDE.xml",
    "Explore/<location-of-the-appconnection>/<name-of-the-appconnection>.AI_CONNECTION.xml",
    "Explore/<location-of-the-serviceconnector>/<name-of-the-serviceconnector>.AI_SERVICE_CONNECTOR.xml"
    ]
    }
    }
    }
    4Send the POST request.
    You see a publish job ID and a success or failure response. If the request fails, the response also gives the error details.
    The following snippet shows a sample response:
    {
    "data": {
    "type": "publish",
    "id": "690465325825028096",
    "attributes": {
    "jobState": "NOT_STARTED",
    "jobStatusDetail": {},
    "startedBy": "autouser_pod1",
    "startDate": "2022-03-21T07:42:42.000+0000",
    "totalCount": 1,
    "processedCount": 0,
    "assetPaths": [
    "Explore/Default/BulkPublishProcessToPublishOnCloud.PROCESS.xml"
    ]
    }
    },
    "links": {
    "self": https://na1.ai.dm-us.informaticacloud.com/active-bpel/asset/v1/publish/690465325825028096,
    "status": https://na1.ai.dm-us.informaticacloud.com/active-bpel/asset/v1/publish/690465325825028096/Status
    }
    }
    The publish job ID in this example is 690465325825028096.
    5To view information about the publish status and publish job, use a GET request with the following URLs:
    URL
    Description
    <Cloud Application Integration POD URL>/active-bpel/asset/v1/publish/<publishId>/Status
    Displays the publish status.
    <Cloud Application Integration POD URL>/active-bpel/asset/v1/publish/<publishId>
    Displays the publish information.