Appearance
createDependent ​
Creates a dependent for a user e.g. Son, Daughter, etc
Request ​
http
POST rest/user/dependentsHeaders ​
| Header | Required | Description |
|---|---|---|
x-nextinteract-authtoken | Yes | Auth token returned from loginUser |
Parameters ​
SAMPLE REQUEST curl --location 'http://localhost:8080/nextinteract-webapp/rest/user/dependents'
--header 'x-nextinteract-authtoken: ArrXi9htJV0kjcbvnIqgag=='
--header 'Content-Type: application/json'
--data '{ "dependentTypeJSON": { "dependentTypeId": 2, "dependentTypeName": "Daughter" }, "name": "Ivy", "dateOfBirth": 1417525200000, "gender" : { "genderCode":"F", "genderName":"Female" }, "colour":"#FFC0CB", "condition1" :
json
{
"conditionId":28,
"conditionName":"Type 1 Diabetes"
},json
{
"conditionId":23,
"conditionName":"Eczema"
}json
{
"dependentTypeJSON": {
"dependentTypeId": 2,
"dependentTypeName": "Daughter"
},
"name": "Ivy",
"dateOfBirth": 1417525200000,
"gender" : {
"genderCode":"F",
"genderName":"Female"
},
"colour":"#FFC0CB",
"condition1" :
{
"conditionId":28,
"conditionName":"Type 1 Diabetes"
},
"condition2" :
{
"conditionId":23,
"conditionName":"Eczema"
}
}Response ​
200 OK ​
SUCCESS
json
{
"dependentUuid": "ea4ad063-d2b3-4780-918d-871c69ff10a5",
"userId": 8,
"dependentTypeJSON": {
"dependentTypeId": 2,
"dependentTypeName": "Daughter"
},
"name": "Ivy",
"dateOfBirth": 1417525200000,
"gender": {
"genderCode": "F",
"genderName": "Female"
},
"colour": "#FFC0CB",
"condition1": {
"conditionId": 28,
"conditionName": "Type 1 Diabetes"
},
"condition2": {
"conditionId": 23,
"conditionName": "Eczema"
},
"created": 1742425927284,
"modified": 1742425927284
}Errors ​
| Exception | Description |
|---|---|
WSInvalidParameterException | See Error Definitions |
WSInvalidAuthTokenException | See Error Definitions |
WSCacheServiceException | See Error Definitions |
WSUserServiceException | See Error Definitions |