Create Session Report
Create a report for a completed session.
Endpoint
- Method: POST
- URL:
/v1/coach/sessions/{id}/session-report
Request Headers
| Header | Value | Required |
|---|---|---|
| Content-Type | application/json | Yes |
| Accept | application/json | Yes |
| Authorization | Bearer token | Yes |
Path Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| id | string | Session ID | Yes |
Request Body
| Parameter | Type | Description | Required | Validation |
|---|---|---|---|---|
| report | string | The session report content | Yes | min:3, max:1024 |
Success Response
{
"success": true,
"message": "تم حفظ البيانات بنجاح.",
"data": [],
"statusCode": 200
}
Error Response
Session Not Found (404)
{
"success": false,
"message": "لم يتم العثور على الجلسة",
"data": null,
"statusCode": 404
}
Validation Error (422)
{
"success": false,
"message": "بيانات غير صالحة",
"data": {
"report": [
"يجب أن يحتوي التقرير على 3 أحرف على الأقل",
"يجب أن لا يتجاوز التقرير 1024 حرف"
]
},
"statusCode": 422
}
Important Notes
- This endpoint is only available for completed sessions
- The report must be between 3 and 1024 characters long
- The report will be associated with the authenticated user
- The report will be stored with the session for future reference
- The report can be viewed later through the session details endpoint