Organizational Hierarchies

API endpoints for organizational hierarchy operations.

Learn more about Organizational Hierarchy Mapping.arrow-up-right

Create a New Org Hierarchy

post

This endpoint creates an organizational hierarchy mapping record representing the organizations, businesses, departments, groups, and/or teams hierarchy. For more details, refer to the Opsera API Documentationarrow-up-right.

Use Cases

  • Organizational Structure Definition: Establish the hierarchy of your organization by defining relationships between entities.

  • Data Integration: Synchronize organizational hierarchies with other systems that require up-to-date structural information.

  • Access Control: Set up hierarchies that can be used to manage permissions and access rights within your organization.


Required Access

  • Authentication: Bearer token is required.

  • API Scope: api

  • Site Roles:

    • Opsera Administrator

    • Administrator

    • Power User


Important Notes!

  • Mandatory Fields: Both parent and child fields are required to establish the hierarchy.

  • Entity Existence: Ensure that the entities you are linking (parent and child) already exist in the system.

  • Type Validation: The parentType and childType fields should accurately reflect the types of the entities (e.g., "department", "team", "group").

  • Relationship Definition: The relationship and mappingType are set to predefined constants and may not need to be modified.

Authorizations
AuthorizationstringRequired

API authentication using Bearer tokens. Include your API token in the Authorization header: Authorization: Bearer <your-api-token>

Tokens can be obtained from the Opsera platform's API token management interface.

Body
parentstringRequired

The unique identifier of the parent entity.

Example: department-id-123
parentTypestringOptional

The type of the parent entity.

Example: department
childstringRequired

The unique identifier of the child entity.

Example: team-id-456
childTypestringOptional

The type of the child entity.

Example: team
Responses
post
/api/v2/data/org-hierarchy

Last updated