Skip to Content
Media

Choose whether to retain a project video after confirmed delivery

PUT
/api/projects/{projectId}/media/{assetId}/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
assetId*string
Length1 <= length

Request Body

  1. body
temporary*boolean

Response Body

Response for status 200

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

Was this page helpful?