Update a sub account
Headers
-
Content-Type string
-
Accept string
Path parameters
-
The ID of the sub account.
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 \
-X PUT https://api.plannrcrm.com/api/v1/plans/plan_uuid/sub-accounts/id \
-H "Authorization: Bearer {OAUTH_ACCESS_TOKEN or PERSONAL_ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"name":"Johns ISA","policy_number":"AVF-4355432","proposal_reference":"BtMWiy0JwHtogU4","active_portfolio_uuid":"83dbb58d-5d36-435a-9953-3c53c85915ed"}'
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": "83dbb58d-5d36-435a-9953-3c53c85915ed"
}
Response examples (200)
{
"name": "John's ISA",
"uuid": "69518b14-7a2e-42a9-9044-e788b3f50d7f",
"created_at": "2025-01-17T11:18:31+00:00",
"statistics": {
"recent_growth": 100
},
"updated_at": "2025-01-17T11:18:31+00:00",
"policy_number": "AVI-4837",
"is_main_account": false,
"active_portfolio": {
"name": "Risky Portfolio",
"uuid": "dfce541d-514c-4ba6-b225-2434467ccf72",
"created_at": "2025-01-17T11:18:31+00:00",
"updated_at": "2025-01-17T11:18:31+00:00",
"is_proposed": true,
"proposed_at": "2025-01-17T00:00:00+00:00"
},
"latest_valuation": {
"uuid": "e3f6d60f-45f4-46b7-8b1e-94431e50b52b",
"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-01-17T11:18:31+00:00",
"created_at": "2025-01-17T11:18:31+00:00",
"updated_at": "2025-01-17T11:18:31+00:00",
"sub_account": "App\\Http\\Resources\\Plans\\SubAccountResource"
}
}