[DELETE] Delete All Sessions
특정 사용자의 모든 데이터를 삭제하고 싶을 때 사용합니다. 모든 세션들과 업로드한 오디오 데이터, 분석 데이터가 삭제됩니다. 모든 세션 데이터 삭제 요청에 따라 에이슬립 서버에서 해당 데이터가 삭제된 경우, 추후 과금 사용량 분석 시 삭제된 세션에 대한 구체적인 근거 제공이 어렵습니다.
Request
URL
DELETE https://api.asleep.ai/ai/v1/sessions
Header
| Field | Type | Required | Description | 
|---|---|---|---|
| x-api-key | String | O | API Key | 
| x-user-id | String | O | 발급받은 user id | 
Example
curl "https://api.asleep.ai/ai/v1/sessions" -XDELETE \
  -H "x-api-key: <YOUR_API_KEY>" \
  -H "x-user-id: <USER_ID>"Response
204 No Content
- 삭제 성공 (No Response Body)
401 Unauthorized
- x-user-id헤더 값이 없거나 포맷이 맞지 않음
{
  "detail": "invalid customer uuid"
}404 Not Found
- 사용자 없음
{
  "detail": "user not exist"
}Updated 4 months ago
