Evict from Memory
import requests
url = "https://api.parallel.ai/v1beta/memory/evict"
payload = { "id": "<string>" }
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({id: '<string>'})
};
fetch('https://api.parallel.ai/v1beta/memory/evict', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.post("https://api.parallel.ai/v1beta/memory/evict")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"id\": \"<string>\"\n}")
.asString();curl --request POST \
--url https://api.parallel.ai/v1beta/memory/evict \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"id": "<string>"
}
'{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Memory
Evict from Memory
Removes a task run, monitor, or FindAll run from the selected memory without deleting the original resource.
POST
/
v1beta
/
memory
/
evict
Evict from Memory
import requests
url = "https://api.parallel.ai/v1beta/memory/evict"
payload = { "id": "<string>" }
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({id: '<string>'})
};
fetch('https://api.parallel.ai/v1beta/memory/evict', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.post("https://api.parallel.ai/v1beta/memory/evict")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"id\": \"<string>\"\n}")
.asString();curl --request POST \
--url https://api.parallel.ai/v1beta/memory/evict \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"id": "<string>"
}
'{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Body
application/json
Kind of source to evict: task, monitor, or findall.
Available options:
task, monitor, findall ID of the task run, monitor, or FindAll run to evict.
Required string length:
1 - 128Pattern:
^[a-zA-Z0-9_-]+$User-provided key identifying the memory scope to use. Omit to use personal memory, if available.
Required string length:
1 - 128Pattern:
^[a-zA-Z0-9_-]+$Response
Source removed from memory.