Skip to content

updateDependent ​

Updates a single dependent for a user.

Request ​

http
PUT rest/user/dependents

Headers ​

HeaderRequiredDescription
x-nextinteract-authtokenYesAuth token returned from loginUser

Parameters ​

SAMPLE REQUEST curl --location --request PUT 'http://localhost:8080/nextinteract-webapp/rest/user/dependents'
--header 'x-nextinteract-authtoken: ArrXi9htJV0kjcbvnIqgag=='
--header 'Content-Type: application/json'
--data '{ "dependentUuid": "ea4ad063-d2b3-4780-918d-871c69ff10a5", "dependentTypeJSON": { "dependentTypeId": 2, "dependentTypeName": "Daughter" }, "name": "Ivy the cheeky monkey" }'

Response ​

200 OK ​

SUCCESS

json
{
    "dependentUuid": "ea4ad063-d2b3-4780-918d-871c69ff10a5",
    "userId": 8,
    "dependentTypeJSON": {
        "dependentTypeId": 2,
        "dependentTypeName": "Daughter"
    },
    "name": "Ivy the cheeky monkey",
    "dateOfBirth": 1417478400000,
    "gender": {
        "genderCode": "F",
        "genderName": "Female"
    },
    "colour": "#FFC0CB",
    "condition1": {
        "conditionId": 28,
        "conditionName": "Type 1 Diabetes"
    },
    "condition2": {
        "conditionId": 23,
        "conditionName": "Eczema"
    },
    "created": 1742425927284,
    "modified": 1742429080488
}

Errors ​

ExceptionDescription
WSInvalidParameterExceptionSee Error Definitions
WSInvalidAuthTokenExceptionSee Error Definitions
WSCacheServiceExceptionSee Error Definitions
WSUserServiceExceptionSee Error Definitions