Skip to Content
Configuration

Change the media budget and temporary video retention

Sets the budget for original media across all projects and how long a video marked temporary stays in the library after confirmed delivery. Changes apply at once; a lower budget refuses new uploads without removing files.

PUT
/api/settings/media

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
maxSourceBytes*|

Budget for original media across all projects in bytes, or null for no budget.

temporaryVideoRetentionDays*integer

Days a temporary video stays in the library after confirmed delivery.

Range1 <= value <= 3650

Response Body

Response for status 200

application/json
  1. response
maxSourceBytes*|

Budget for original media across all projects in bytes, or null for no budget.

temporaryVideoRetentionDays*integer

Days a temporary video stays in the library after confirmed delivery.

Range1 <= value <= 3650
Example Request
curl -X PUT 'https://postdot.example/api/settings/media' \
  -H 'Content-Type: application/json' \
  -d '{
  "maxSourceBytes": 1,
  "temporaryVideoRetentionDays": 1
}'
Example Response
{
  "maxSourceBytes": 1,
  "temporaryVideoRetentionDays": 1
}

Was this page helpful?