Scope resolution
Collection operations
Collection endpoints can query every tenant in the key scope whenX-Tenant-ID is omitted. Send the header to restrict results to one authorized tenant.
Create operations
For a division-restricted key, an employee create request may omit
divisionId only when the selected tenant has exactly one allowed division. Otherwise send an allowed division ID.
Existing resources
ForGET and PATCH by ID, X-Tenant-ID narrows the lookup. The resource and all referenced target resources must be accessible through that tenant.
Placement rules
X-Tenant-IDnever expands access.- A division belongs to one tenant.
divisionIdcan assign or move an employee only within the same tenant.divisionId: nullremoves the division assignment; it does not transfer the employee.- Tenant transfer of an assigned employee is not exposed by the public update endpoint.
- A create dry run can return a preview identifier that must not be used in later requests.
Common failures
Terminology
Review the distinction between company, tenant, division, portal permission, and API-key scope.
