Update a user
Update a user's properties. If a field is not provided, it will not be updated. If you need to unset a field, pass an explicit null value. Only optional fields can be unset.
Phone numbers can be updated for organizations that don't manage onboarding through Counsel. Updates may return 409 if your organization enforces phone-number uniqueness and the new number is already taken.
To grant or extend a user's access (set access_expires_at), use POST /v1/user/{userId}/enable instead — this endpoint does not accept access_expires_at.
This API will not deep-merge nested fields. Instead it operates on the top-level fields only.
{
medical_profile: {
conditions: ["condition1", "condition2"],
medications: ["medication1", "medication2"],
}
}
This will replace the existing medical_profile object with the new one provided in the request body.
Request
- Base URLhttps://api.counselhealth.com (the document declares no server; this is the origin it was published from)
- AuthHTTP bearer
Path parameters
Headers
Optional idempotency key. Repeat requests with the same key and body return the original result.
Request body
Example request
{
"dob": "1990-01-01",
"phone": "+18007006000",
"addresses": [
{
"line1": "123 Main St",
"line2": "Apt 2",
"city": "San Francisco",
"state": "CA",
"zip": "12345"
}
],
"race": [
"White",
"Asian"
],
"medical_profile": {
"conditions": [
"Diabetes"
],
"medications": [
"Metformin"
],
"medication_allergies": [
"Tylenol"
],
"surgeries": [
"Appendectomy"
],
"family_history": [
"Diabetes"
],
"doctors": {
"pcp_name": "Dr. Joe Doe",
"specialist_types": [
"Cardiologist"
]
},
"additional_details": {}
},
"email": "john.doe@example.com",
"metadata": {
"plan": "pro",
"external_id": "1234567890"
},
"first_name": "John",
"last_name": "Doe",
"preferred_name": "Bob"
}Response
Default Response
Example response
{
"created_at": "2030-01-01T00:00:00Z",
"dob": "1990-01-01",
"phone": "+18007006000",
"addresses": [
{
"line1": "123 Main St",
"line2": "Apt 2",
"city": "San Francisco",
"state": "CA",
"zip": "12345"
}
],
"race": [
"White",
"Asian"
],
"medical_profile": {
"conditions": [
"Diabetes"
],
"medications": [
"Metformin"
],
"medication_allergies": [
"Tylenol"
],
"surgeries": [
"Appendectomy"
],
"family_history": [
"Diabetes"
],
"doctors": {
"pcp_name": "Dr. Joe Doe",
"specialist_types": [
"Cardiologist"
]
},
"additional_details": {}
},
"access_expires_at": "2030-01-01T00:00:00Z",
"email": "john.doe@example.com",
"metadata": {
"plan": "pro",
"external_id": "1234567890"
},
"onboarded_at": "2030-01-01T00:00:00Z",
"external_id": "01ARZ3NDEKTSV4RRFFQ69G5FAV"
}Changes
No recorded changes to this operation across all 1 revision of this API.