entity_id from the caller's active session and validates that the group name is unique for the same entity and workflow type. Each approver must be a valid identity, and duplicate approver identities or approval order numbers are rejected. When is_default is set to true, the new group becomes the default active group for that entity and type, and any existing default group is automatically demoted.curl --location '/maker-checker-approver-groups' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"group_name": "Payout Approval Team",
"type": "payout",
"approvers": [
{
"approval_order": 1,
"identity_id": "01J9X0M7G3SRNQ8Y2P4K6T1A5C"
},
{
"approval_order": 2,
"identity_id": "01J9X0R2F7QW4K3C8L5M9T6P1N"
}
]
}'{
"message": "Maker-checker approver group created successfully",
"status": "success",
"data": {
"id": "01J9X0W8M4K6NQ7T2V6S9D1R3Y",
"entity_id": "01J9X0G3K8V7MZPY2Q1R5T6N4A",
"group_name": "Payout Approval Team",
"type": "payout",
"status": "active",
"is_default": true,
"approvers": [
{
"approval_order": 1,
"identity_id": "01J9X0M7G3SRNQ8Y2P4K6T1A5C",
"identity": {
"id": "01J9X0M7G3SRNQ8Y2P4K6T1A5C",
"name": "Ada Okafor",
"email": "ada.okafor@acme.ng"
},
"configuration_meta": {
"role": "finance-lead",
"region": "NG"
},
"added_by": "01J9X0G3K8V7MZPY2Q1R5T6N4A"
},
{
"approval_order": 2,
"identity_id": "01J9X0R2F7QW4K3C8L5M9T6P1N",
"identity": {
"id": "01J9X0R2F7QW4K3C8L5M9T6P1N",
"name": "Kehinde Adebayo",
"email": "kehinde.adebayo@acme.ng"
},
"configuration_meta": {
"role": "treasury-reviewer",
"region": "NG"
},
"added_by": "01J9X0G3K8V7MZPY2Q1R5T6N4A"
}
],
"created": 1757702400000,
"updated": 1757702400000
}
}