Update a sub account

PUT /api/v1/plans/{plan_uuid}/sub-accounts/{id}

Path parameters

application/json

Body

Responses

  • 200 application/json
    Hide response attributes Show response attributes object
    • uuid string

      UUID of the sub account

    • The timestamp of when the resource was created.

    • The timestamp of when the resource was created.

    • name string

      Descriptive name of the sub account

    • Provider reference of the sub account

    • The latest valuation of the sub account

    • Denotes if the sub account a main account of the plan

    • The active portfolio of the sub account

    • The statistics on a sub account. Only displayed when you retrieve an individual sub-account.

PUT /api/v1/plans/{plan_uuid}/sub-accounts/{id}
curl \
 --request PUT 'https://api.plannrcrm.com/api/v1/plans/plan_uuid/sub-accounts/id' \
 --header "Authorization: Bearer {OAUTH_ACCESS_TOKEN or PERSONAL_ACCESS_TOKEN}" \
 --header "Content-Type: application/json" \
 --header "Accept: application/json" \
 --data '{"name":"Johns ISA","policy_number":"AVF-4355432","proposal_reference":"BtMWiy0JwHtogU4","active_portfolio_uuid":"0362a1bf-8b76-4bdd-bb55-51ef07f8faac"}'
Request examples
# Headers
Authorization: Bearer {OAUTH_ACCESS_TOKEN or PERSONAL_ACCESS_TOKEN}
Content-Type: application/json
Accept: application/json

# Payload
{
  "name": "Johns ISA",
  "policy_number": "AVF-4355432",
  "proposal_reference": "BtMWiy0JwHtogU4",
  "active_portfolio_uuid": "0362a1bf-8b76-4bdd-bb55-51ef07f8faac"
}
Response examples (200)
{
  "name": "John's ISA",
  "uuid": "7c03f2eb-abae-4a63-b423-aaf8d6dffaf5",
  "created_at": "2025-04-22T13:44:19+01:00",
  "statistics": {
    "recent_growth": 100
  },
  "updated_at": "2025-04-22T13:44:19+01:00",
  "policy_number": "AVI-4837",
  "is_main_account": false,
  "active_portfolio": {
    "name": "Risky Portfolio",
    "uuid": "b53dbd07-4dee-4ea3-8101-a7118f6909a2",
    "created_at": "2025-04-22T13:44:19+01:00",
    "updated_at": "2025-04-22T13:44:19+01:00",
    "is_proposed": true,
    "proposed_at": "2025-04-22T00:00:00+01:00"
  },
  "latest_valuation": {
    "uuid": "bdd1bb35-fd3f-482f-9483-05092053d05f",
    "value": {
      "amount": {
        "example": "4000",
        "description": "Money amount at their lowest denominator (for example: pennies)"
      },
      "currency": {
        "example": "GBP",
        "description": "Currency of the money"
      },
      "formatted": {
        "example": "£40.00",
        "description": "Money amount formatted with currency"
      }
    },
    "valued_at": "2025-04-22T13:44:19+01:00",
    "created_at": "2025-04-22T13:44:19+01:00",
    "updated_at": "2025-04-22T13:44:19+01:00",
    "sub_account": "App\\Http\\Resources\\Plans\\SubAccountResource"
  }
}