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 all products, set the
syncAllProductsproperty to true. - To synchronize a list of products, provide an array of products with the
productsproperty.
For example, the following request synchronizes PolicyCenter with all products in the APD App:
Command
POST /productdefinition/v1/sync-productsRequest{
"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-productsRequest{
"data": {
"attributes": {
"products": ["TST", "SBO"]
}
}
}