This endpoint allows users to update a household.
Relationships:
If a RelatedClientGUID is provided, the related client must already have an established relationship with the client before it can be added to or changed within the household. To create or manage relationships, see the Relationship endpoint.
Errors:
404 Not Found– Returned when the HouseholdGUID, ClientGUID, or RelatedClientGUID cannot be found.409 Conflict– Returned for any issues not related to permissions.
Additional errors may be returned depending on the associated HTTP status code.
PUT
/api/v2/household/{HouseholdGUID}
curl \
--request PUT 'https://api.fincalc.co.uk/api/v2/household/{HouseholdGUID}' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"ClientGUID":"3F0B1C88-6D80-4C17-BB3E-1D68E6D26405","RelatedClientGUID":"8B8AE6E3-2F55-4B3E-88F9-1BC0FAD31C6D","HouseholdLabel":"Mr and Mrs Jackson","BaselineAssumptionSetGUID":"EFCAF6D7-B6F5-4D1C-A1F9-9FA92F024B90","ExcludeFormattedValues":1}'
Request examples
{
"ClientGUID": "3F0B1C88-6D80-4C17-BB3E-1D68E6D26405",
"RelatedClientGUID": "8B8AE6E3-2F55-4B3E-88F9-1BC0FAD31C6D",
"HouseholdLabel": "Mr and Mrs Jackson",
"BaselineAssumptionSetGUID": "EFCAF6D7-B6F5-4D1C-A1F9-9FA92F024B90",
"ExcludeFormattedValues": 1
}
Response examples (200)
{
"success": true,
"data": {
"HouseholdGUID": "5EF25021-1B07-484E-A730-FBF0FD28BA86",
"ClientGUID": "3F0B1C88-6D80-4C17-BB3E-1D68E6D26405",
"RelatedClientGUID": "8B8AE6E3-2F55-4B3E-88F9-1BC0FAD31C6D",
"HouseholdLabel": "Mr and Mrs Jackson",
"BaselineAssumptionSetGUID": "EFCAF6D7-B6F5-4D1C-A1F9-9FA92F024B90",
"FormattedValues": {
"ClientGUID": "Terry Jackson",
"RelatedClientGUID": "June Jackson",
"BaselineAssumptionSetGUID": "FinCalc Default Fixed 0%"
}
},
"message": "Household updated successfully."
}
Response examples (403)
{
"success": false,
"message": "You do not have permission to view the household."
}
Response examples (404)
{
"success": false,
"message": "Client not found."
}
Response examples (409)
{
"success": false,
"message": "Clients are not in a relationship with each other."
}
Response examples (422)
{
"success": false,
"message": "Validation Error.",
"data": {
"ClientGUID": [
"The client guid field is required."
]
}
}