Overview
POST
/notifications/{id}/trashnotificationsTrash one notification
Create a record in trash.
Auth: bearerAuth — calls run as the authenticated user.
Parameters
- idpathstring
Responses
200
Success
- successboolean
Example
{
"success": true
}401
Error
- erroroptionalobject
Example
{
"error": {
"message": "string",
"code": "string"
}
}404
Error
- erroroptionalobject
Example
{
"error": {
"message": "string",
"code": "string"
}
}Code examples
cURL
curl -X POST "https://api.agenticdeveloperhub.com/notifications/{id}/trash" \
-H "Authorization: Bearer YOUR_TOKEN"JavaScript
const res = await fetch("https://api.agenticdeveloperhub.com/notifications/{id}/trash", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_TOKEN"
},
});
const data = await res.json();