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
header
AuthorizationBearer <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.
projectId*stringLength
1 <= length- body
videoRetentionDays*|nullResponse for status 200
application/json- response
videoRetentionDays*|nulldefaultRetentionDays*integerRange
1 <= value <= 3650curl -X PUT 'https://postdot.example/api/projects/string/media/retention' \
-H 'Content-Type: application/json' \
-d '{
"videoRetentionDays": 1
}'Example Response
{
"videoRetentionDays": 1,
"defaultRetentionDays": 1
}