Update Employee
PUT/api/employees/:id
Update Employee
Request
Path Parameters
id integerrequired
Header Parameters
X-Company-Slug stringrequired
- application/json
Body
Array [
]
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[]
service_id integer
price number
company_id integer
employee_id integer
Responses
- 200
Successful response
- application/json
- Schema
- Example (from schema)
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
{
"id": "1",
"email": "[email protected]",
"name": "Test",
"surname": "User 1",
"language": "en",
"phone_number": "+90123123213",
"remember_me_token": true,
"birthday": "1990-01-01",
"created_at": "2024-02-20T19:18:45.782+03:00",
"updated_at": "2024-04-11T01:11:24.889+03:00",
"timezone": "Europe/Istanbul",
"meta": {
"is_admin": true,
"is_active": true,
"working_hours": {
"monday": "07:30-18:00",
"tuesday": "07:30-18:00",
"wednesday": "07:30-18:00",
"thursday": "07:30-18:00",
"friday": "07:30-18:00",
"saturday": "07:30-18:00",
"sunday": "07:30-18:00"
},
"default_photo_id": 3,
"working_type": "full-time",
"earning_type": "salary-bonus",
"salary": 5000,
"min_goal_amount": 10000,
"bonus": 500,
"sales_bonus": 200,
"notes": "Çalışanın notları",
"start_date": "2024-07-28",
"end_date": "2025-07-28"
}
}
Loading...