Create user
Request examples
{
"name":"Samwise Gamgee",
"email":"samwise@50skills.com"
}
import requests
response = requests.post(
"https://journeys-api.50skills.app/v1/users/",
json={
"name": "Samwise Gamgee",
"email": "samwise@shire.com",
}
)
print(response.json())
fetch("https://journeys-api.50skills.app/v1/users/", {
method: "POST",
headers: {
"Content-Type": "application/json"
},
body: JSON.stringify({
"name": "Samwise Gamgee",
"email": "samwise@shire.com"
})
})
.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