Skip to Content
Configuration

Change how long deleted posts stay in the trash

Sets the number of days a deleted post stays in the trash before it is deleted forever, for every project. A shorter period applies at once to posts already in the trash.

PUT
/api/settings/trash

Authorization

headerAuthorizationBearer <Postdot API key>

A user-owned Postdot API key sent as Authorization: Bearer <token>. Its project scope is limited by the creator’s current access.

Request Body

  1. body
postRetentionDays*integer
Range1 <= value <= 3650

Response Body

Response for status 200

application/json
  1. response
postRetentionDays*integer
Range1 <= value <= 3650
Example Request
curl -X PUT 'https://postdot.example/api/settings/trash' \
  -H 'Content-Type: application/json' \
  -d '{
  "postRetentionDays": 1
}'
Example Response
{
  "postRetentionDays": 1
}

Was this page helpful?