Mega S4 icon

Mega S4

Interact with Mega.nz S4 object storage (S3-compatible)

Bucket → Put Policy

AI-generated

Summary

Set or update the policy of a specified Mega.nz S4 bucket by providing a valid S3-compatible bucket policy JSON object.

Inputs

  • Bucket Name (required) — Specify the name of the bucket to which the policy will be applied.
  • Policy (required) — Provide the bucket policy as a JSON object in the valid S3 bucket policy format.

Output shape

a single record representing the set bucket policy operation result

The output represents the response from the Mega.nz S4 API confirming the policy has been set; no pagination or multiple records are expected.

Discussion