POST api/portfolio
Request Information
URI Parameters
None.
Body Parameters
PortfolioModel| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
None. |
|
| name | string |
Required |
|
| description | string |
None. |
|
| reserved_percentage | integer |
Required |
|
| program_id | integer |
None. |
|
| program | ProgramModel |
None. |
|
| portfolio_type | PortfolioType |
Required |
|
| funder_id | integer |
None. |
|
| funder_name | string |
None. |
|
| created_by | string |
None. |
|
| updated_by | string |
None. |
|
| created_date | date |
None. |
|
| updated_date | date |
None. |
|
| is_active | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"id": 1,
"name": "sample string 1",
"description": "sample string 2",
"reserved_percentage": 1,
"program_id": 1,
"program": {
"id": 1,
"name": "sample string 1"
},
"portfolio_type": 1,
"funder_id": 1,
"funder_name": "sample string 3",
"created_by": "sample string 4",
"updated_by": "sample string 5",
"created_date": "2026-05-01T21:09:40.6504441+00:00",
"updated_date": "2026-05-01T21:09:40.6504441+00:00",
"is_active": true
}
text/html
Sample:
{"id":1,"name":"sample string 1","description":"sample string 2","reserved_percentage":1,"program_id":1,"program":{"id":1,"name":"sample string 1"},"portfolio_type":1,"funder_id":1,"funder_name":"sample string 3","created_by":"sample string 4","updated_by":"sample string 5","created_date":"2026-05-01T21:09:40.6504441+00:00","updated_date":"2026-05-01T21:09:40.6504441+00:00","is_active":true}
application/xml, text/xml
Sample:
<PortfolioModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LSAtlas_WebAPI.Models">
<created_by>sample string 4</created_by>
<created_date>2026-05-01T21:09:40.6504441+00:00</created_date>
<is_active>true</is_active>
<updated_by>sample string 5</updated_by>
<updated_date>2026-05-01T21:09:40.6504441+00:00</updated_date>
<description>sample string 2</description>
<funder_id>1</funder_id>
<funder_name>sample string 3</funder_name>
<id>1</id>
<name>sample string 1</name>
<portfolio_type>Managed</portfolio_type>
<program>
<id>1</id>
<name>sample string 1</name>
</program>
<program_id>1</program_id>
<reserved_percentage>1</reserved_percentage>
</PortfolioModel>
multipart/form-data
Sample:
<PortfolioModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LSAtlas_WebAPI.Models"><created_by>sample string 4</created_by><created_date>2026-05-01T21:09:40.6504441+00:00</created_date><is_active>true</is_active><updated_by>sample string 5</updated_by><updated_date>2026-05-01T21:09:40.6504441+00:00</updated_date><description>sample string 2</description><funder_id>1</funder_id><funder_name>sample string 3</funder_name><id>1</id><name>sample string 1</name><portfolio_type>Managed</portfolio_type><program><id>1</id><name>sample string 1</name></program><program_id>1</program_id><reserved_percentage>1</reserved_percentage></PortfolioModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |