PUT v1/BondPortfolios/AddItems
Add items to a bond portfolio.
Request Information
Parameters
| Name | Type | Description | Additional information |
|---|---|---|---|
| request | BondPortfoliosAddItemsRequest | Container for the BondPortfoliosAddItemsRequest input parameters. See parameter details below. |
Define this parameter in the request body. |
Request body formats
application/json, text/json
Sample:
{
"id": 1,
"insiteId": "sample string 2",
"list": [
1,
2,
3
],
"sdkVersion": "sample string 3"
}
application/xml, text/xml
Sample:
<BondPortfoliosAddItemsRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<SdkVersion>sample string 3</SdkVersion>
<Id>1</Id>
<InsiteId>sample string 2</InsiteId>
<List xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>1</d2p1:int>
<d2p1:int>2</d2p1:int>
<d2p1:int>3</d2p1:int>
</List>
</BondPortfoliosAddItemsRequest>
Parameter Information
Parameter Name: request
| Property | Type | Description |
|---|---|---|
| Id | Int32 | The id of the bond portfolio to add items to. |
| InsiteId | String | Optional - InsiteId parameter. |
| List | List`1 | The list of items to be added to the bond portfolio. |
| SdkVersion | String | If the client is using the SDK, the version number will be passed along with the request. This field is optional. |
Response Information
Response body formats
application/json, text/json
Sample:
{
"itemsAdded": 1,
"errorOccurred": false,
"errorMessages": [
"sample string 1",
"sample string 2",
"sample string 3"
],
"request": {
"id": 1,
"insiteId": "sample string 2",
"list": [
1,
2,
3
],
"sdkVersion": "sample string 3"
}
}
application/xml, text/xml
Sample:
<BondPortfoliosAddItemsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MA.CreditEdge.Web.Api.Contract.Messages.BondPortfolios">
<ErrorMessages xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
<d2p1:string>sample string 3</d2p1:string>
</ErrorMessages>
<ErrorOccurred xmlns="">false</ErrorOccurred>
<Request xmlns="">
<SdkVersion>sample string 3</SdkVersion>
<Id>1</Id>
<InsiteId>sample string 2</InsiteId>
<List xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:int>1</d3p1:int>
<d3p1:int>2</d3p1:int>
<d3p1:int>3</d3p1:int>
</List>
</Request>
<ItemsAdded>1</ItemsAdded>
</BondPortfoliosAddItemsResponse>