SaaSFlow
DevelopersAPIReferenceaccount_groups

Reorder

Set the display order of account groups. Pass every group id in the order you want them shown; each group's order is set to its position in the array.

Authentication

Checking whether you're signed in…
PUT
/companies/{companyId}/account_groups/reorder

Authorization

headerAuthorization<token>

A SaaSFlow API key (format sf_…) or an OAuth bearer token. Paste only the key — the proxy adds the Bearer prefix. Create an API key in Settings → Company settings → API keys — see API keys.

Path Parameters

companyId*string
Length1 <= length

Request Body

application/json
  1. body
accountGroupIds*array<>
Itemsitems <= 1000

Response Body

Order updated

application/json
  1. response
success*boolean
curl -X PUT "https://example.com/companies/string/account_groups/reorder" \  -H "Content-Type: application/json" \  -d '{    "accountGroupIds": [      "string"    ]  }'
{  "success": true}