approvals

Make a policy for the organization, a workspace, a project or a key. One per scope; the narrowest wins.

Organization admins only (403 organization_admin_required), on a browser session with a fresh proof in the x-50h-reauth header (401 reauth_required). It needs a person: API keys, connected apps and service accounts get 403 session_required. Every change is written to the organization's audit. Approvers must be people in the organization (in the workspace, for a workspace, project or key policy).

post/v1/approvals/policies

Request

  • Base URL: https://api.50heads.com
  • URL: https://api.50heads.com/v1/approvals/policies
  • Auth: HTTP bearer

Request body

enabledboolean
alwaysboolean
perAskPenceinteger nullable
perDayPenceinteger nullable
perMonthPenceinteger nullable
requireForTiersinteger[]
requireForImagesboolean
expiresInMinutesinteger
onExpiry'deny'
allowSelfApprovalUnderPenceinteger nullable
notifystring[]
scope'organization' | 'workspace' | 'project' | 'key' required
scopeIdstring nullable

Response

OK

Changes

No recorded changes to this operation across all 1 revision of this API.