Dayli Docs

Move an owned post to Trash

POST
/api/v1/posts/{postId}/trash

Authorization

AuthorizationBearer <token>

In: header

Path Parameters

postId*string
Length1 <= length <= 128

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/v1/posts/post_01K4Y6P8K2/trash"
{  "id": "post_01K4Y6P8K2",  "localDate": "2026-09-10",  "trashedAt": "2026-09-09T12:00:00Z",  "restoreUntil": "2026-09-09T12:00:00Z",  "purgeDueAt": "2026-09-09T12:00:00Z",  "generation": 0,  "pendingCleanup": true,  "failureCategory": "string"}