Update the current user profile
curl --request PATCH \
--url https://api.webstashai.com/auth/me \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"avatar_url": "<string>"
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>', avatar_url: '<string>'})
};
fetch('https://api.webstashai.com/auth/me', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.webstashai.com/auth/me"
payload = {
"name": "<string>",
"avatar_url": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"user": {
"id": "<string>",
"email": "jsmith@example.com",
"plan": "free",
"email_verified": 123,
"name": "<string>",
"avatar_url": "<string>"
}
}{
"error": "<string>"
}Update the current user profile
PATCH
https://api.webstashai.com
/
auth
/
me
Update the current user profile
curl --request PATCH \
--url https://api.webstashai.com/auth/me \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"avatar_url": "<string>"
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>', avatar_url: '<string>'})
};
fetch('https://api.webstashai.com/auth/me', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.webstashai.com/auth/me"
payload = {
"name": "<string>",
"avatar_url": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"user": {
"id": "<string>",
"email": "jsmith@example.com",
"plan": "free",
"email_verified": 123,
"name": "<string>",
"avatar_url": "<string>"
}
}{
"error": "<string>"
}