Update a saved query
curl --request PATCH \
--url https://gdeltcloud.com/api/v2/saved-queries/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"params": {}
}'import requests
url = "https://gdeltcloud.com/api/v2/saved-queries/{id}"
payload = { "params": {} }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({params: {}})
};
fetch('https://gdeltcloud.com/api/v2/saved-queries/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"success": true,
"data": []
}Saved Queries
Update a saved query
The creator can rename, edit, pin, change explicit workspace sharing or record reopening. Execution filters are revalidated when edited; reopening validates compatibility. Sharing does not grant edit permission to other members.
PATCH
/
api
/
v2
/
saved-queries
/
{id}
Update a saved query
curl --request PATCH \
--url https://gdeltcloud.com/api/v2/saved-queries/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"params": {}
}'import requests
url = "https://gdeltcloud.com/api/v2/saved-queries/{id}"
payload = { "params": {} }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({params: {}})
};
fetch('https://gdeltcloud.com/api/v2/saved-queries/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"success": true,
"data": []
}Authorizations
Body
application/json
⌘I

