cURL
curl --request PUT \
--url http://localhost:8081/admin-service/users/{id} \
--header 'Content-Type: application/json' \
--header 'origin: <origin>' \
--data '
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"document": "<string>",
"birthDate": "2023-12-25",
"dialingCode": "<string>",
"phone": "<string>",
"enabled": true,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
'const options = {
method: 'PUT',
headers: {origin: '<origin>', 'Content-Type': 'application/json'},
body: JSON.stringify({
id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
email: '<string>',
firstName: '<string>',
lastName: '<string>',
document: '<string>',
birthDate: '2023-12-25',
dialingCode: '<string>',
phone: '<string>',
enabled: true,
createdAt: '2023-11-07T05:31:56Z',
updatedAt: '2023-11-07T05:31:56Z'
})
};
fetch('http://localhost:8081/admin-service/users/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "http://localhost:8081/admin-service/users/{id}"
payload = {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"document": "<string>",
"birthDate": "2023-12-25",
"dialingCode": "<string>",
"phone": "<string>",
"enabled": True,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
headers = {
"origin": "<origin>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"firstName": "<string>",
"lastName": "<string>",
"document": "<string>",
"birthDate": "2023-12-25",
"dialingCode": "<string>",
"phone": "<string>",
"enabled": true,
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"email": "<string>",
"profiles": [
{
"userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"documentDoctor": "<string>",
"documentDoctorUpdatedAt": "2023-12-25",
"enabled": true,
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"specialties": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"userProfileId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"specialtyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"enabled": true,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
]
}
],
"auth": [
{
"userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"externalAuthId": "<string>",
"email": "<string>"
}
],
"ratings": "<array>",
"unities": "<array>",
"institutions": "<array>"
}Put admin serviceusers
Update user by id
PUT
/
admin-service
/
users
/
{id}
cURL
curl --request PUT \
--url http://localhost:8081/admin-service/users/{id} \
--header 'Content-Type: application/json' \
--header 'origin: <origin>' \
--data '
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"document": "<string>",
"birthDate": "2023-12-25",
"dialingCode": "<string>",
"phone": "<string>",
"enabled": true,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
'const options = {
method: 'PUT',
headers: {origin: '<origin>', 'Content-Type': 'application/json'},
body: JSON.stringify({
id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
email: '<string>',
firstName: '<string>',
lastName: '<string>',
document: '<string>',
birthDate: '2023-12-25',
dialingCode: '<string>',
phone: '<string>',
enabled: true,
createdAt: '2023-11-07T05:31:56Z',
updatedAt: '2023-11-07T05:31:56Z'
})
};
fetch('http://localhost:8081/admin-service/users/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "http://localhost:8081/admin-service/users/{id}"
payload = {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"document": "<string>",
"birthDate": "2023-12-25",
"dialingCode": "<string>",
"phone": "<string>",
"enabled": True,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
headers = {
"origin": "<origin>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"firstName": "<string>",
"lastName": "<string>",
"document": "<string>",
"birthDate": "2023-12-25",
"dialingCode": "<string>",
"phone": "<string>",
"enabled": true,
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"email": "<string>",
"profiles": [
{
"userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"documentDoctor": "<string>",
"documentDoctorUpdatedAt": "2023-12-25",
"enabled": true,
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"specialties": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"userProfileId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"specialtyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"enabled": true,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
]
}
],
"auth": [
{
"userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"externalAuthId": "<string>",
"email": "<string>"
}
],
"ratings": "<array>",
"unities": "<array>",
"institutions": "<array>"
}Headers
Path Parameters
User id
Body
application/json
Response
OK
Available options:
FEMININE, MASCULINE Show child attributes
Show child attributes
Show child attributes
Show child attributes
⌘I