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 -
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 -
Sample Error response -