create
Developing
POST
http://localhost:1337/api/staff/reports
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://localhost:1337/api/staff/reports' \
--header 'Content-Type: application/json' \
--data-raw '{
"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
{"id":4,"documentId":"jyb2kg7clz4c8nsg3ss3fc0n","createdAt":"2025-05-05T10:45:46.490Z","updatedAt":"2025-05-05T10:45:46.490Z","publishedAt":"2025-05-05T10:45:46.488Z","locale":null,"reportType":"staff-list","startDate":"2025-04-04","endDate":"2025-04-04","generatedAt":"2025-04-08T18:30:00.000Z","remarks":null,"reportData":null}
Request
Body Params application/json