This subresource allows investors to create a new portfolio.
Operation: POST
URL: https://api.lendingclub.com/api/investor/[version]/accounts/[Investor Id]/portfolios
URL Parameters: Investor Id — This can be obtained from the Account Summary section on LendingClub website when a user is logged in.
Query Parameters: None.
Supported Formats: JSON
Request Payload: JSON request for create portfolio
Name | Type | Nullable | Description |
---|---|---|---|
actorId | integer | No | The id of the investor account |
portfolioName | String | No | Portfolio name |
portfolioDescription | String | Yes | Portfolio description |
Sample request -
![](http://images.ctfassets.net/orqped9h4wgz/31Tqq0GfEpQpGwY9EY3fmc/dd7f6a15dad122bba550225f3e95a2b4/create-portifolio-request.png)
Returned value: Successful
execution of the call will result in a JSON response. Cases where the input is invalid (ex. Portfolio name not provided or a portfolio with the same name already exists) will result in a HTTP Response code 400 (Bad Request)
An appropriate error message will be communicated back as a JSON payload along with every response with HTTP Response code 400.
Name | Type | Nullable | Description |
---|---|---|---|
portfolioId | integer | No | Portfolio Id |
portfolioName | String | No | Portfolio name |
portfolioDescription | String | Yes | Portfolio description |
Sample Successful response -
![](http://images.ctfassets.net/orqped9h4wgz/4cEesyi0FLo1mqzBSSpItD/e58aab6ef4d10be2af04b4c022710988/create-portifolio-success-response.png)
Sample Error response -
![](http://images.ctfassets.net/orqped9h4wgz/2jfnx7nnebz3FKzpU9SL48/5b0f5147fdc6e39e58c1880a576ffbca/create-portifolio-error-response.png)