Create account group

Purpose

Creates one or more empty account groups from a JSON list in accountGroups. Add accounts to a group with Add account to an account group.

Rights

  • TENANT_SETTINGS_WRITE

Rules

  • The request is all or nothing: when one account group is invalid, FinologeeBKO creates none of them
  • No two entries of the request can have the same name

Effects

  • The audit log records each creation
  • When the tenant has the TENANT_SETTINGS_FOUR_EYES_REVIEW feature flag, Add account to an account group accepts the id of account groups whose creation waits for approval
⚠️

Order of the returned identifiers

The response lists the id of every created account group, without guarantee that the order matches the order of the request. To map each id to its name, read the groups back with Find account group, filtered by names.

Errors

StatusWhen
400For name conflicts, validationErrors holds one entry per error, with inputIndex

Related

Body Params

Create account group request

accountGroups
array of objects
required
length ≥ 1

List of account groups to create

accountGroups*

Create account group request

string
required
length between 0 and 255

Description of the account group

string
required
length between 0 and 255
^[^,]*$

Name of the account group. It cannot contain commas.

Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
Credentials
Header
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
application/problem+json