Update division [beta]

Update a division identified by its division code. Only the fields sent change. You can update only external_hierarchy_id, external_hierarchy_level_id, name, parent_division_code, description, timezone, external_program_ids and schema. Passing any other field, including division_code or division_id, returns 400.

On success, the Pismo platform generates a Corporate division updated event.

Notes:

  • external_program_ids replaces the current programs, and an empty array removes them.
  • null clears description or timezone, and an empty schema ({}) clears the schema.
  • A division with child divisions can't move to another hierarchy, and its level must keep a lower index than its child divisions' levels.
  • Sending the same update again succeeds.
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required
length between 1 and 36
^[a-zA-Z0-9-]+$

Division code

Body Params

Only external_hierarchy_id, external_hierarchy_level_id, name, parent_division_code, description, timezone, external_program_ids and schema can change. Any other field, including division_code, fails with 400.

string | null

Division description. Omit it to keep the current description, or send null to clear it.

string
length between 1 and 60
^[a-zA-Z0-9-]+$

Hierarchy ID provided by the client, unique per organization. It cannot be changed after the hierarchy is created.

string
length between 1 and 60
^[a-zA-Z0-9-]+$

Hierarchy level ID provided by the client, unique per organization. It cannot be changed after the hierarchy is created.

external_program_ids
array of objects, unique
length ≤ 100

External program IDs of the programs that accounts in the division can use, validated when a transaction banking account is created. Without them, the division inherits the programs of its parent division, if it has one.

external_program_ids
string
length between 1 and 40

Division name

string
length between 1 and 36
^[a-zA-Z0-9-]+$

Division code that can be set as the parent of the division being created. The parent must be at a level with a lower index than the division being created. It must comply with the rule ^[a-zA-Z0-9-]+$.

schema
object

Valid JSON Schema as defined at https://json-schema.org/specification.html.
This schema validates the JSON custom fields used in the
Create transaction banking account process.
If this field is not set, the division inherits its schema from the parent
division, if one exists.
The example below is shown in YAML for readability; the API requires JSON.

string | null

Division timezone in timezone database format. Omit it to keep the current timezone, or send null to clear it, so the division inherits the timezone of its parent division, or UTC if no parent division has one.

Responses
204

Division updated

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