create
Developing
POST
http://localhost:1337/api/staffs
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://localhost:1337/api/staffs' \
--header 'Content-Type: application/json' \
--data-raw '{
"firstName": "niharika",
"lastName": "shisha",
"gender": "male",
"dob": "2025-04-11",
"phone": "07418529631",
"email": "vardhana@gmail.com",
"reports": [
{
"id": 2,
"documentId": "jg9av46b3csn7x2vbwm1bzdr",
"createdAt": "2025-04-30T04:52:01.706Z",
"updatedAt": "2025-04-30T04:52:24.305Z",
"publishedAt": "2025-04-30T04:52:24.291Z",
"locale": null,
"reportType": "staff-list",
"startDate": "2025-04-04",
"endDate": "2025-04-04",
"generatedAt": "2025-04-08T18:30:00.000Z",
"remarks": null,
"reportData": null
}
]
}'
Response Response Example
{}
Request
Body Params application/json