Skip to main content
POST

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

organizationId
string
required

Unique identifier of the organization. String in UUID without dashes (32-character hex string) if access is done via values from Findity system otherwise, id of external system can be used

Body

application/json

Request body for creating a new approval section.

type
enum<string>
required

Type of the approval section. DEPARTMENT — based on the organizational unit structure; DIMENSION — based on a custom expense dimension. Only one DEPARTMENT section is allowed per organization.

Available options:
DEPARTMENT,
DIMENSION
active
boolean
default:true

Whether the section is active. Defaults to true when omitted.

sortOrder
integer<int32>

Zero-based position of the section within the organization's list of approval sections. When omitted, the section is appended at the end. Providing a sortOrder that is already used shifts the existing sections by 1 to make room.

Required range: x >= 0
sendToUnauthorizedApprovers
boolean
default:false

Whether expense reports should be sent to approvers who are not otherwise authorized on the section item.

numberOfRequiredApprovals
integer | null

Number of sequential approvals required for expense reports evaluated against this section. Must be at least 1 and cannot exceed the value set on the main approval setup. When omitted, the value inherits from the main approval setup.

Required range: 1 <= x <= 3
customDimensionDefinition
object

Custom dimension to which the section is bound. Required when type is DIMENSION; must be omitted otherwise.

Response

Approval section successfully created

A single approval section — either based on organizational units (DEPARTMENT) or on a custom dimension (DIMENSION).

id
string
required

Findity identifier of the approval section.

Pattern: ^[0-9a-fA-F]{32}$
active
boolean
required

Whether the section is active for approval routing.

type
enum<string>
required

Type of the approval section. DEPARTMENT — based on organizational unit structure; DIMENSION — based on a custom expense dimension.

Available options:
DEPARTMENT,
DIMENSION
sortOrder
integer<int32>
required

Zero-based position of the section within the organization's list of approval sections.

Required range: x >= 0
numberOfRequiredApprovals
integer | null

Number of sequential approvals required for expense reports evaluated against this section.

Required range: 1 <= x <= 3
sendToUnauthorizedApprovers
boolean

Whether expense reports are sent to approvers who are not otherwise authorized on the section item.

customDimensionDefinition
object | null

Custom dimension the section is bound to. Present only when type is DIMENSION.