Update a sub account Run in API Explorer
Ask AI
PUT
/api/v1/plans/{plan_uuid}/sub-accounts/{uuid}
curl \
--request PUT 'https://api.plannrcrm.com/api/v1/plans/6ff8f7f6-1eb3-3525-be4a-3932c805afed/sub-accounts/6ff8f7f6-1eb3-3525-be4a-3932c805afed' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"name": "Johns ISA",
"policy_number": "AVF-4355432",
"proposal_reference": "BtMWiy0JwHtogU4",
"active_portfolio_uuid": "150e5889-bdaa-454c-9159-33f4d7731855"
}'
Request examples
{
"name": "Johns ISA",
"policy_number": "AVF-4355432",
"proposal_reference": "BtMWiy0JwHtogU4",
"active_portfolio_uuid": "150e5889-bdaa-454c-9159-33f4d7731855"
}
Response examples (200)
{
"uuid": "e9e5e354-b144-42f1-bc11-4278b47894ac",
"created_at": "2026-09-18T09:00:11+01:00",
"updated_at": "2026-09-18T09:00:11+01:00",
"name": "John's ISA",
"policy_number": "AVI-4837",
"latest_valuation": {
"uuid": "b2c5fb58-1c43-469e-a904-8e99446b5baa",
"created_at": "2026-09-18T09:00:11+01:00",
"updated_at": "2026-09-18T09:00:11+01:00",
"valued_at": "2026-09-18T09:00:11+01:00",
"value": {
"amount": {
"example": "4000",
"description": "Money amount at their lowest denominator (for example: pennies)"
},
"formatted": {
"example": "£40.00",
"description": "Money amount formatted with currency"
},
"currency": {
"example": "GBP",
"description": "Currency of the money"
}
},
"sub_account": {
"uuid": "9c903845-f948-4be8-8e4e-d1db2910f30f",
"created_at": "2026-09-18T09:00:17+01:00",
"updated_at": "2026-09-18T09:00:17+01:00",
"name": "John's ISA",
"policy_number": "AVI-4837",
"is_main_account": false,
"statistics": {
"recent_growth": 100
}
}
},
"is_main_account": false,
"active_portfolio": {
"uuid": "8ab09976-fcd0-42ec-bf9c-0a3a259236a9",
"created_at": "2026-09-18T09:00:11+01:00",
"updated_at": "2026-09-18T09:00:11+01:00",
"is_proposed": true,
"proposed_at": "2026-09-18T00:00:00+01:00",
"name": "Risky Portfolio"
},
"statistics": {
"recent_growth": 100
}
}
Response examples (409)
{
"message": "Plan is being deleted."
}
Response examples (422)
{
"message": "The given data was invalid.",
"errors": {
"field": [
"The field is invalid."
]
}
}