Update a page
curl --request PATCH \
--url https://api.webstashai.com/pages/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "<string>",
"is_favorite": true,
"is_pinned": true,
"tags": [
"<string>"
]
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({title: '<string>', is_favorite: true, is_pinned: true, tags: ['<string>']})
};
fetch('https://api.webstashai.com/pages/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.webstashai.com/pages/{id}"
payload = {
"title": "<string>",
"is_favorite": True,
"is_pinned": True,
"tags": ["<string>"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"error": "<string>"
}Update a page
PATCH
https://api.webstashai.com
/
pages
/
{id}
Update a page
curl --request PATCH \
--url https://api.webstashai.com/pages/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "<string>",
"is_favorite": true,
"is_pinned": true,
"tags": [
"<string>"
]
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({title: '<string>', is_favorite: true, is_pinned: true, tags: ['<string>']})
};
fetch('https://api.webstashai.com/pages/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.webstashai.com/pages/{id}"
payload = {
"title": "<string>",
"is_favorite": True,
"is_pinned": True,
"tags": ["<string>"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"error": "<string>"
}Authorizations
Body
application/json
Response
Updated page
