Skip to Content
Media

Set or disable automatic video retention for a project

Off by default (null). When set to a number of days, published videos in this project move to the media trash after that interval unless kept individually. Never deletes permanently right away.

PUT
/api/projects/{projectId}/media/retention

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.

Path Parameters

projectId*string
Length1 <= length

Request Body

  1. body
videoRetentionDays*|null

Response Body

Response for status 200

application/json
  1. response
videoRetentionDays*|null
defaultRetentionDays*integer
Range1 <= value <= 3650
Example Request
curl -X PUT 'https://postdot.example/api/projects/string/media/retention' \
  -H 'Content-Type: application/json' \
  -d '{
  "videoRetentionDays": 1
}'
Example Response
{
  "videoRetentionDays": 1,
  "defaultRetentionDays": 1
}

Was this page helpful?