Skip to main content

Patch Employee

PATCH 

/api/employees/:id

Patch Employee

Request

Path Parameters

    id integerrequired

Header Parameters

    X-Company-Slug stringrequired

Body

    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

Responses

Successful response

Schema

    id number
    user_id number
    created_at date-time
    updated_at date-time
    is_admin boolean
    is_active boolean

    working_hours

    object

    nullable

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

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

    earning_type stringnullable

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

    salary integer
    min_goal_amount integer
    bonus integer
    sales_bonus integer
    notes stringnullable
    start_date datenullable
    end_date datenullable
Loading...