Skip to main content
PUT
/
storage
/
settings
Update storage settings
curl --request PUT \
  --url https://api.fal.ai/v1/storage/settings \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{}'
{
  "expiration_duration_seconds": 86400,
  "initial_acl": {
    "default": "forbid",
    "rules": [
      {
        "user": "my-teammate",
        "decision": "allow"
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

API key must be prefixed with "Key ", e.g. Authorization: Key YOUR_API_KEY

Body

application/json

Account-level storage lifecycle settings

expiration_duration_seconds
integer | null

Seconds after which newly uploaded files automatically expire and are deleted. Null disables auto-expiration.

Required range: x >= 1
Example:

86400

initial_acl
object

Default ACL applied to newly uploaded files. Null uses the system default (public).

Response

Storage settings after the update

Account-level storage lifecycle settings

expiration_duration_seconds
integer | null
required

Seconds after which newly uploaded files automatically expire, or null if auto-expiration is disabled

Example:

86400

initial_acl
object
required

Default ACL applied to newly uploaded files, or null if the system default (public) is used