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": "5de800de-2be0-42c7-9c37-48a6a07161f1"
}'
Request examples
{
"name": "Johns ISA",
"policy_number": "AVF-4355432",
"proposal_reference": "BtMWiy0JwHtogU4",
"active_portfolio_uuid": "5de800de-2be0-42c7-9c37-48a6a07161f1"
}
Response examples (200)
{
"uuid": "88084835-3d4a-4d51-8156-3db7430efbbd",
"created_at": "2026-10-09T13:38:25+01:00",
"updated_at": "2026-10-09T13:38:25+01:00",
"name": "John's ISA",
"policy_number": "AVI-4837",
"latest_valuation": {
"uuid": "29b602e2-7c10-454a-aba7-8be32c5698d3",
"created_at": "2026-10-09T13:38:25+01:00",
"updated_at": "2026-10-09T13:38:25+01:00",
"valued_at": "2026-10-09T13:38:25+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": "2ff7488e-b462-4263-bee3-9dc9f7ee8b49",
"created_at": "2026-10-09T13:38:28+01:00",
"updated_at": "2026-10-09T13:38:28+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": "eb6ee509-b994-4016-93d3-6a5eb3e6a0ea",
"created_at": "2026-10-09T13:38:25+01:00",
"updated_at": "2026-10-09T13:38:25+01:00",
"is_proposed": true,
"proposed_at": "2026-10-09T00: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."
]
}
}