Skip to main content

Update Employee

PUT 

/api/employees/:id

Update Employee

Request

Path Parameters

    id integerrequired

Header Parameters

    X-Company-Slug stringrequired

Body

    name string
    surname string
    email string
    phone_number string
    password string
    language string

    Possible values: [en, tr]

    gender string

    Possible values: [male, female, other]

    birthday date
    sales_bonus integer
    is_admin boolean
    is_active boolean

    working_hours

    object

    monday stringnullable
    tuesday stringnullable
    wednesday stringnullable
    thursday stringnullable
    friday stringnullable
    saturday stringnullable
    sunday stringnullable
    default_photo_id integer
    working_type string

    Possible values: [part-time, full-time, contractor]

    earning_type string

    Possible values: [salary, salary-bonus, bonus]

    salary integer
    min_goal_amount integer
    bonus integer
    notes string
    start_date date
    end_date date

    services

    object[]

  • Array [

  • service_id integer
    price number
    company_id integer
    employee_id integer
  • ]

Responses

Successful response

Schema

    id string
    email string
    name stringnullable
    surname stringnullable
    language stringnullable
    phone_number stringnullable
    remember_me_token booleannullable
    birthday datenullable
    created_at date-time
    updated_at date-time
    timezone stringnullable

    meta

    object

    required

    is_admin boolean
    is_active boolean

    working_hours

    object

    monday stringnullable
    tuesday stringnullable
    wednesday stringnullable
    thursday stringnullable
    friday stringnullable
    saturday stringnullable
    sunday stringnullable
    default_photo_id integer
    working_type string

    Possible values: [part-time, full-time, contractor]

    earning_type string

    Possible values: [salary, salary-bonus, bonus]

    salary integer
    min_goal_amount integer
    bonus integer
    sales_bonus integer
    notes string
    start_date date
    end_date date
Loading...