/retention_policiesCreate a retention policy
Creates a new retention policy that controls how long content remains protected from deletion. Supply policy_name, policy_type, and disposition_action; finite policies use a duration in retention_length, while indefinite policies do not. The created policy can later be assigned to folders, metadata templates, or an enterprise.
- RetriesRetries up to 2×, 500ms backoff, 30s timeout.
Retention policy details. policy_name, policy_type, and disposition_action are required.
A 400 is returned when retention_length is specified for an indefinite policy, disposition_action is invalid, max_extension_length is not allowed for the selected policy configuration, or description exceeds 500 characters. A 409 is returned when a retention policy with the same name already exists. policy_type must be finite or indefinite, and disposition_action must be permanently_delete or remove_retention.