Skip to main content
PUT
/
organizations
/
{organizationId}
/
organizationSettings
Update organization settings
curl --request PUT \
  --url https://app.dynamicauth.com/api/v0/organizations/{organizationId}/organizationSettings \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "approvalEnabled": true,
  "approvalTtlHours": 84,
  "approvalRequiredApprovals": 2
}
'
{
  "organizationSettings": {
    "approvalEnabled": true,
    "approvalTtlHours": 123,
    "approvalRequiredApprovals": 123,
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "organizationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "updatedById": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

organizationId
string
required

ID of organization

Required string length: 36
Pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
Example:

"95b11417-f18f-457f-8804-68e361f9164f"

Body

application/json

Partial update for organization settings. Only provided fields are updated.

approvalEnabled
boolean

Toggle the approval workflow on or off.

approvalTtlHours
integer

Hours before a pending request expires (1–168).

Required range: 1 <= x <= 168
approvalRequiredApprovals
integer

Number of approvals required (minimum 1).

Required range: x >= 1

Response

Updated organization settings

Wrapper response for a single organization settings object.

organizationSettings
object
required

Organization-level settings with typed columns. One row per organization, lazily created on first write.