Skip to Content
SaaSFlow
DevelopersAPIReferenceaccounts

Reorder

Reorder accounts inside one group, and move them into it in the same call. Every id in accountIds is assigned to accountGroupId (null for the ungrouped…

Authentication

Checking whether you're signed in…
PUT
/companies/{companyId}/accounts/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
Formatuuid

Request Body

application/json
  1. body
accountGroupId*string|null
accountIds*array<>
Itemsitems <= 1000

Response Body

Group membership and order updated

application/json
  1. response
success*boolean
Example Request
curl -X PUT 'https://api.saasflow.com/companies/497f6eca-6276-4993-bfeb-53cbbbba6f08/accounts/reorder' \  -H 'Content-Type: application/json' \  -d '{  "accountGroupId": "string",  "accountIds": [    "string"  ]}'
Example Response
{  "success": true}