Update
Update information of a previously created user.
Request for full update
PUT https://api.demo.meetinglawyers.com/s2s/v1/users/{user_id} (development)
PUT https://api.meetinglawyers.com/s2s/v1/users/{user_id} (production)
Request for partial update
PATCH https://api.demo.meetinglawyers.com/s2s/v1/users/{user_id} (development)
PATCH https://api.meetinglawyers.com/s2s/v1/users/{user_id} (production)
Headers
| Name | Value |
|---|---|
Api-Key | Integration identifier provided by MeetingLawyers |
Secret-Key | Security key provided by MeetingLawyers to securize server-to-server communications |
Content-Type | application/json |
Accept | application/json |
Request body
Parameters
| Name | Required | Type | Value |
|---|---|---|---|
status | True | Numeric | 0: Free (no access), 2: Premium, 4: Freemium |
email | False | String | A valid email |
nid_number | False | String | A valid dni or nie |
first_name | False | String | User's first name |
last_name | False | String | User's last name |
gender | False | Numeric | 0: Male, 1: Female |
birthdate | False | Date | ISO8601 Date (YYYY-MM-DD) |
mobile_phone | False | String | A mobile phone number |
coverage_name | False | String | User plan information |
contract_number | False | String | User contract number |
service_language_code | False | String | ISO639-1 language code |
description | False | String | Extra user information provided by integrator |
has_video_call | False | Numeric | 0: Disabled, 1: Enabled |
country_code | False | String | ISO3166-1 alpha-2 country code |
ml_group_name | False | String | User's group in MeetingLawyers |
md_group_name | False | String | User's group in MeetingDoctors (for MeetingPros apps) |
Example full update
{
"status": 2,
"email": "example@meetinglawyers.com",
"nid_number": "12345678A",
"first_name": "John",
"last_name": "Doe",
"gender": 1,
"birthdate": "1980-12-31",
"mobile_phone": "600000000",
"coverage_name": "Premium",
"contract_number": "123456",
"service_language_code": "en",
"description": null,
"has_video_call": 1,
"has_video_call_1to1": 1,
"country_code": "es",
"ml_group_name": "demo-lawyers",
"md_group_name": "demo-doctors"
}
Example partial update
{
"status": 2
}