Skip to main content

Create Session Report

Create a report for a completed session.

Endpoint

  • Method: POST
  • URL: /v1/customer/sessions/{id}/session-report

Request Headers

HeaderValueRequired
Content-Typeapplication/jsonYes
Acceptapplication/jsonYes
AuthorizationBearer tokenYes

Path Parameters

ParameterTypeDescriptionRequired
idstringSession IDYes

Request Body

ParameterTypeDescriptionRequiredValidation
reportstringThe session report contentYesmin: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