Update a sub account
Headers
-
Content-Type
string -
Accept
string
Body
-
name
string Descriptive name of the sub account
-
policy_number
string Sub account policy number
-
proposal_reference
string Sub account proposal number
-
active_portfolio_uuid
string The active portfolio UUID of the 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":"bf501787-c1e9-4db8-afe3-08d37492a246"}'
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": "bf501787-c1e9-4db8-afe3-08d37492a246"
}
Response examples (200)
{
"name": "John's ISA",
"uuid": "e946f8d3-6db2-443b-9b27-0e34c7b9552d",
"created_at": "2025-06-05T11:39:41+01:00",
"statistics": {
"recent_growth": 100
},
"updated_at": "2025-06-05T11:39:41+01:00",
"policy_number": "AVI-4837",
"is_main_account": false,
"active_portfolio": {
"name": "Risky Portfolio",
"uuid": "9613b056-330b-4326-a0e1-8462e778a0a8",
"created_at": "2025-06-05T11:39:41+01:00",
"updated_at": "2025-06-05T11:39:41+01:00",
"is_proposed": true,
"proposed_at": "2025-06-05T00:00:00+01:00"
},
"latest_valuation": {
"uuid": "d36bea8c-023e-41a1-b70b-d9bc1acf0166",
"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-06-05T11:39:41+01:00",
"created_at": "2025-06-05T11:39:41+01:00",
"updated_at": "2025-06-05T11:39:41+01:00",
"sub_account": "App\\Http\\Resources\\Plans\\SubAccountResource"
}
}