Organizations and members
PATCH/v1/org

Update organization

View as .md
curl -X PATCH "https://api.52-28-238-205.sslip.io/v1/org" \  -H "Cookie: <console session cookie>" \  -H "Content-Type: application/json" \  -d '{"name":"Example","default_limits":{"auto_threshold_base_units":"50000","hard_cap_base_units":"50000","approval_ttl_minutes":1}}'

Renames the organization or changes its default limits (auto-approve threshold, maximum per payment, approval expiry of 1 to 1440 minutes). Console session or API key with org:manage; the auto-approve limit can't exceed the maximum per payment.

Server URLhttps://api.52-28-238-205.sslip.io
PATCH/v1/orgBase URL: https://api.52-28-238-205.sslip.io
Authorization
  • sessionCookie: <console session cookie>
  • apiKeyAuthorization: Bearer sk_test_...
Body

application/json · required. Fields are listed under Request body below.

Requires permissionorg:manage
Held by owner, admin, operator, merchant_owner. The caller must hold this permission, or the call is refused with 403.

Authorization

cookieuapg_session<token>

Console session cookie (HttpOnly, SameSite=Lax)

Request Body

application/json
  1. body
name?string|null
default_limits?|null

Response Body

Success.

application/json
  1. response
org*
[key: string]?any