Synchronize products with APD cloud service

When the PolicyCenter server is in developer mode and the IApdServicePlugin is enabled, you can use the Cloud API to synchronize changes made to products in the APD App with the visualized products in PolicyCenter.

Use the following endpoint to synchronize products in APD App with PolicyCenter:
  • POST /productdefinition/v1/sync-products
To synchronize products, one of the following settings are required:
  • To synchronize all products, set the syncAllProducts property to true.
  • To synchronize a list of products, provide an array of products with the products property.

For example, the following request synchronizes PolicyCenter with all products in the APD App:

Command
POST /productdefinition/v1/sync-products
Request
{
  "data": {
    "attributes": {
      "syncAllProducts": true
    }
  }
} 

And, the following request synchronizes PolicyCenter with the TST product and SBO product in the APD App:

Command
POST /productdefinition/v1/sync-products
Request
{
  "data": {
    "attributes": {
      "products": ["TST", "SBO"]
    }
  }
}