Update user
Request samples
{
"name":"Samwise Updated",
"email":"samwisetheupdated@50skills.com",
"phone":"+441234567890"
}
import requests
response = requests.patch(
"https://journeys-api.50skills.app/v1/users/4FKaU0aw",
json={
"name": "Samwise Gamgee",
"role": "admin",
"isActive": False,
}
)
print(response.json())
fetch("https://journeys-api.50skills.app/v1/users/4FKaU0aw", {
method: "PATCH",
headers: {
"Content-Type": "application/json"
},
body: JSON.stringify({
"name": "Samwise Gamgee",
"role": "admin",
"isActive": false
})
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error(error));
Response samples
{
"id": "eJzQLAKm",
"shortId": "eJzQLAKm",
"name": "Samwise Gamgee",
"email": "samwise@50skills.com",
"phone": null,
"isActive": true,
"role": "user",
"picture": null,
"hasSetPassword": false,
"isMe": false,
"status": "created"
}
Last updated