Update Dependent Profile
Update an existing dependent profile.
This endpoint updates an existing dependent profile. It allows modifying sensitive personal data and the relationship to the user.
Please note that all properties are replaced with the values from the request payload. If a property is not specified, it will be replaced with an empty value.
Any change results in a new version
.
Endpoint
Method | Url |
---|---|
POST | /v1.0/dependent-profiles/:dependent_profile_id |
Path Parameters
The unique identifier of the user who owns the dependent profile.
The unique identifier of the dependent profile to update.
Request Body
All properties in the request will completely replace the existing values.
If a property is omitted from the request, its value will be set to null
.
To maintain existing values, you must include them in the request.
The dependent's relationship to the user.
Object containing the dependent's personal information. See the personal info object.
Sample Request
Copied1curl -X POST 'https://api.worklayer.com/v1.0/users/3b31f309-93ad-463a-ad1d-c39cac1c0a3d/dependent-profiles/e7b513b9-d795-4475-9382-96710ca61622' \2-H 'Authorization: Bearer {token}' \3-H 'Content-Type: application/json' \4-d '{5 "relationship": "Child",6 "personal_info": {7 "first_name": "Alice",8 "last_name": "Doe",9 "date_of_birth": "01/01/2010"10 }11}'
Response
Unique identifier of the updated profile.
New version number of the updated profile.
Sample Response
Copied1{2 "id": "e7b513b9-d795-4475-9382-96710ca61622",3 "version": 24}
Errors
400
: invalid request body403
: you're not allowed to update the profile404
: the dependent profile was not found