Patch Employee
PATCH/api/employees/:id
Patch Employee
Request
Path Parameters
id integerrequired
Header Parameters
X-Company-Slug stringrequired
- application/json
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
- 200
Successful response
- application/json
- Schema
- Example (from schema)
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
{
"id": 1,
"user_id": 2,
"created_at": "2024-08-12T09:09:28.127Z",
"updated_at": "2024-08-12T09:09:28.127Z",
"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...