1. Hierarchy Information
Calven
  • Overview
  • Key Access Levels
  • Basic Authentication Overview
  • HMAC Authentication Overview
  • SDKs
  • Calven Data Models
  • Changelog
  • HMAC Authentication
    • Generate a token with an API key and HMAC
      POST
    • Generate a token with an API key and client secret
      POST
  • Presence
    • Presence Overview
    • Submit presence events with BASIC auth
      POST
    • Submit presence events
      POST
  • Occupancy
    • Occupancy Overview
    • Submit occupancy events
      POST
  • Time off
    • Submit time off updates
      POST
  • Access Credentials
    • Submit access credentials
      POST
  • Warehouse - Basic Auth
    • Warehouse Overview
    • Users
      GET
    • Groups
      GET
    • Locations
      GET
    • Desks
      GET
    • Bookings & Attendance
      GET
    • Presence Details
      GET
    • User Actions Log
      GET
  • Warehouse - HMAC Auth
    • Warehouse Overview
    • Users
    • Groups
    • Locations
    • Desks
    • Bookings & Attendance
    • Presence
    • User Actions Log
  • Hierarchy Information
    • Org Hierarchy Information Overview
    • Submit group hierarchy relationships
      PUT
    • Submit group hierarchy relationships with Basic Auth
      PUT
  • Schemas
    • Schemas
      • DWDesksResponseDto
      • DMGroupRelationshipDto
      • PresenceEventDto
      • DWGroupsResponseDto
      • LeaveRequestBody
      • CreatePresenceEventDto
      • TimeOffEvent
      • TimeoffRequestBody
      • EventResultDto
      • TimeoffResponse
      • CreatePresenceEventResponseDto
      • TimeoffEventResponse
      • ResultCodes
      • OccupancyEventDto
      • CreateOccupancyEventDto
      • CreateOccupancyEventResponseDto
      • AuthRequestDto
      • AuthResponseDto
      • OAuthRequestDto
      • OAuthResponseDto
      • AccessCredentialUpdateResultCodes
      • AccessCredentialUpdateResult
      • AccessCredentialUpdateResponse
      • AccessCredential
      • AccessCredentialUpdate
      • AccessCredentialUpdateRequest
      • DWChangeLogUserResponseDto
      • DWUserBookingAttendanceResponseDto
      • DWPresenceResponseDto
      • DWUsersResponseDto
      • DWLocationsResponseDto
  1. Hierarchy Information

Org Hierarchy Information Overview

Background#

Calven synchronizes with your directory via the SCIM protocol to keep information immediately up to date. While provisioning groups via user attributes is preferred (allowing Calven to automatically infer hierarchy), this API endpoint is required for organizations with matrix structures or users in multiple groups within the same level.
This endpoint allows you to explicitly define parent-child group relationships that cannot be inferred from user attributes alone.
Note: This endpoint expects a complete payload. Every successful PUT request will fully replace the existing hierarchy information in Calven.

Authentication#

This API supports both Basic Auth and HMAC authentication. You must use the method that corresponds to how your API key is configured.
Ensure your endpoint path matches your auth type (e.g., /basic for Basic Auth).

Request Body Schema#

The request payload must be sent as application/json and contain a single groupRelationships array.
FieldTypeRequiredDescription
groupRelationshipsarrayYesAn array of objects defining the group structure.
groupstringYesThe name of the child group (e.g., "Channel Marketing").
groupTypestringYesThe attribute or category name for the group (e.g., "Department").
parentstringnullYes
parentTypestringnullYes

Example group relationship information:#

{
    "group": "Channel Marketing",
    "groupType": "Department",
    "parent": "Marketing",
    "parentType": "Division"
}

Validation Rules#

To ensure successful processing, your payload must adhere to the following rules:
No Circular References: Group A cannot be the parent of Group B if Group B is the parent of Group A.
Single Parent Limit: One group cannot have multiple parent references.
Null Top Levels: Top-level groups must send null for both parent and parentType.

Process#

Because this API fully replaces the previous state, you can send this data as often as required. When the next directory management report runs in Calven, the hierarchy information provided by your most recent API call will be utilized to structure the group relationships.
Modified at 2026-04-30 15:23:49
Previous
User Actions Log
Next
Submit group hierarchy relationships
Built with