/retention_policy_assignmentsAssign a retention policy
Creates an assignment that applies a retention policy to an enterprise, folder, or metadata template. Supply policy_id and an assign_to object with the target type, and include filter_fields or start_date_field only when assigning to a metadata template. The resulting assignment identifies the retained content and the policy applied to it.
- RetriesRetries up to 2×, 500ms backoff, 30s timeout.
Retention policy assignment details. policy_id and assign_to are required.
A 400 is returned when an enterprise assignment includes an id, when start_date_field is used with a non-metadata-template target, or when the field cannot be resolved or is incompatible with the policy. A 404 is returned when policy_id does not identify an existing retention policy. A 409 is returned when an equal or longer retention policy is already assigned to the target.