Touchstone Re 2023 API Reference
UpdatePortfolioStatic Method
Example 


Air.Services.Proxy Assembly > (Global) Namespace > ReinsurancePortfolioManagementServiceClient Class : UpdatePortfolioStatic Method
Contains an UpdatePortfolioStaticRequest that identifies the new name and description for the static portfolio, as well as the Business Unit Sequential Identifier (SID), SQL Instance SID, and Portfolio SID associated with the portfolio.
Updates an existing Touchstone Re Static Portfolio.

A portfolio in Touchstone Re is a collection of reinsurance treaties (or Layers) sourced from various Reinsurance Programs. There are three types of portfolios: master, static, and dynamic.

The master portfolio contains all the treaties in the business unit. A static portfolio is a collection of reinsurance treaties that you explicitly select from the master portfolio. A dynamic portfolio is a collection of reinsurance treaties that you select from the master portfolio by defining a filter. As treaties are added, modified, and removed from the master portfolio, the content of the dynamic portfolio changes automatically.

Syntax
Public Function UpdatePortfolioStatic( _
   ByVal request As UpdatePortfolioStaticRequest _
) As UpdatePortfolioStaticResponse
Dim instance As ReinsurancePortfolioManagementServiceClient
Dim request As UpdatePortfolioStaticRequest
Dim value As UpdatePortfolioStaticResponse
 
value = instance.UpdatePortfolioStatic(request)

Parameters

request
Contains an UpdatePortfolioStaticRequest that identifies the new name and description for the static portfolio, as well as the Business Unit Sequential Identifier (SID), SQL Instance SID, and Portfolio SID associated with the portfolio.

Return Value

An UpdatePortfolioStaticResponse that contains the status of the update.
Remarks
To find the Business Unit SID to pass into this method, call the GetBusinessUnits() method.

To find the SQL Instance SID to pass into this method, call the GetSqlInstances() method.

To find the Portfolio SID to pass into this method, call the GetPortfolios() method.

Example
The following example shows how to update a static portfolio using the UpdatePortfolioStatic() method:
using AIR.Services.Common.Data;
 using AIR.Services.Reinsurance.PortfolioManagement.Api;
 using System;
            
class SnippetPortfolioAPIs
{
    private static void UpdatePortfolioStatic(int businessUnitSid, int sqlInstanceSid, string name, int portfolioSid)
    {
        ReinsurancePortfolioManagementServiceClient client = new ReinsurancePortfolioManagementServiceClient();
            
        UpdatePortfolioStaticRequest request = new UpdatePortfolioStaticRequest();
        //Set the BusinessUnitSid property (required property)
        request.BusinessUnitSid = businessUnitSid;
        //Set the SqlInstanceSid property (required property)
        request.SqlInstanceSid = sqlInstanceSid;
        //Set the Name property. (required property)
        request.Name = name;
        //Set the PortfolioSid property. (required property)
        request.PortfolioSid = portfolioSid;
        //Set the Description property. (optional property)
        request.Description = "Updated by API";
        //Submit the request and get response back
        UpdatePortfolioStaticResponse response = client.UpdatePortfolioStatic(request);
        //Validate the response. Response is valid if Response.Status.Code is equal to StatusCode.Success
        if (response.Status.Code == StatusCode.Success)
        {
            Console.WriteLine("Portfolio updated");
        }
    }
}
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

ReinsurancePortfolioManagementServiceClient Class
ReinsurancePortfolioManagementServiceClient Members