> ## Documentation Index
> Fetch the complete documentation index at: https://apidocs.sesametime.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create employee manager

> Assign a manager (clocks/leaves validator) to an employee at the next free order of the given validator type.

Version:
v4


## OpenAPI

````yaml openapi-v2.json POST /core/v4/employees/{employeeId}/managers
openapi: 3.0.0
info:
  title: Sesame Public API v2
  description: >-
    Public API v2 — additive surface `/public/{context}/v{N}`,
    endpoint-versioned from v4
  version: 1.0.0
servers:
  - url: https://api.sesamehr.com
    description: Production
security:
  - Bearer: []
paths:
  /core/v4/employees/{employeeId}/managers:
    post:
      tags:
        - Employee Managers
      summary: Create employee manager
      description: >-
        Assign a manager (clocks/leaves validator) to an employee at the next
        free order of the given validator type.
      operationId: CreateEmployeeManager
      parameters:
        - name: employeeId
          in: path
          description: Employee id.
          required: true
          schema:
            type: string
            format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateEmployeeManagerRequest'
      responses:
        '201':
          description: The identifier of the created assignment.
          content:
            application/json:
              schema:
                properties:
                  data:
                    $ref: '#/components/schemas/CreatedEntry'
                type: object
        '401':
          description: Missing or invalid API key
        '403':
          description: API consumer lacks permission over the requested resource
        '422':
          description: Validation error
components:
  schemas:
    CreateEmployeeManagerRequest:
      required:
        - managerId
        - permission
        - order
      properties:
        managerId:
          description: Employee that will validate.
          type: string
          format: uuid
        permission:
          description: Validator type.
          type: string
          enum:
            - absencesManagement
            - checksManageRequestsAndIncidences
        order:
          description: >-
            Validation position. Must be the next free one of the employee for
            that permission.
          type: integer
          maximum: 2
          minimum: 0
      type: object
    CreatedEntry:
      properties:
        id:
          description: Identifier of the created resource.
          type: string
          format: uuid
      type: object
  securitySchemes:
    Bearer:
      type: http
      description: 'Sesame Public API consumer token (Authorization: Bearer <token>)'
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.