Add Photo
POST/api/employees/:id/photos
Add Photo
Request
Path Parameters
id integerrequired
Header Parameters
X-Company-Slug stringrequired
- multipart/form-data
Body
file binary
Responses
- 200
Successful response
- application/json
- Schema
- Example (from schema)
Schema
id string
size integer
extension string
entity_id string
entity string
created_by_id string
drive string
path string
created_at date-time
updated_at date-time
{
"id": "1",
"size": 6105,
"extension": "png",
"entity_id": "12",
"entity": "employee",
"created_by_id": "1",
"drive": "s3",
"path": "employee/12/clz8w0zsr0005thrq7xf7apw1.png",
"created_at": "2024-07-30T23:45:52.920+03:00",
"updated_at": "2024-07-30T23:45:52.920+03:00"
}
Loading...