slackline/api/admin/legal_hold/policies_create

This module is generated by gleam run -m slackline_codegen/generate. Do not edit it by hand.

Setters for the optional arguments of admin.legalHold.policies.create. Each setter takes the call that legal_hold.policies_create returns and sets one argument:

legal_hold.policies_create(name: "Policy name")
|> policies_create.description("Content under review for case xxxx")

Values

pub fn description(
  call: slackline.Call(legal_hold.PoliciesCreate, r),
  description: String,
) -> slackline.Call(legal_hold.PoliciesCreate, r)

A long form textual description of the policy.

pub fn policy_end_date(
  call: slackline.Call(legal_hold.PoliciesCreate, r),
  policy_end_date: Int,
) -> slackline.Call(legal_hold.PoliciesCreate, r)

Unix timestamp of when a policy should end. Omit to hold data until policy release. This value cannot be changed once a policy is created.

pub fn policy_start_date(
  call: slackline.Call(legal_hold.PoliciesCreate, r),
  policy_start_date: Int,
) -> slackline.Call(legal_hold.PoliciesCreate, r)

Unix timestamp of when a policy should start. Omit to hold all historical data. This value cannot be changed once a policy is created.

pub fn restrictions(
  call: slackline.Call(legal_hold.PoliciesCreate, r),
  restrictions: List(legal_hold.LegalHoldRestriction),
) -> slackline.Call(legal_hold.PoliciesCreate, r)

You can either pass ONLY_DMS or omit this argument to set no restrictions on the policy. See example request below for the no restrictions use case. More details in the Restrictions section reference.

✨ Search Document