Update your profile
curl --request PATCH \
--url https://api.1-news.app/v1/me \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"bio": "<string>",
"links": [
{}
]
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>', bio: '<string>', links: [{}]})
};
fetch('https://api.1-news.app/v1/me', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.1-news.app/v1/me"
payload = {
"name": "<string>",
"bio": "<string>",
"links": [{}]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)Account
Update your profile
PATCH /v1/me updates your editor name, bio, and links. The change is the same one the dashboard profile page saves.
PATCH
/
v1
/
me
Update your profile
curl --request PATCH \
--url https://api.1-news.app/v1/me \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"bio": "<string>",
"links": [
{}
]
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>', bio: '<string>', links: [{}]})
};
fetch('https://api.1-news.app/v1/me', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.1-news.app/v1/me"
payload = {
"name": "<string>",
"bio": "<string>",
"links": [{}]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)