지원 메시지 API
개요
지원 메시지 API는 사용자(환자)에게 메시지를 전송하는 기능을 제공합니다.
주요기능
- 메시지 전송: 특정 사용자에게 메시지 전송
[POST] /support/users/{userId}/message/send - 메시지 전송
메시지 전송
특정 사용자에게 메시지를 전송합니다.
- HTTP Method:
POST - 인증: 액세스 토큰 (
accessToken) 필요
Headers
| Header | Type | Description | Required |
|---|---|---|---|
| Authorization | Bearer {accessToken} | 사용자 인증을 통해 발급받은 액세스 토큰 입니다. | ✔ |
Path Parameters
| 파라미터 | 타입 | 설명 | Required |
|---|---|---|---|
| userId | string | 사용자 ID | ✔ |
Request Body
N/A
Responses
| Http Status Code | 설명 | Error Code(s) |
|---|---|---|
200 OK | 메시지 전송 성공 | - |
400 Bad Request | 메시지 전송 실패 | - |
401 Unauthorized | 인증 실패 | - |
404 Not Found | 사용자 사이클을 찾을 수 없음 | - |
200 OK - 성공
{
"success": true
}
| 필드 | 타입 | 설명 |
|---|---|---|
| success | boolean | 성공 여부 |
400 Bad Request - 전송 실패
예시: 메시지 전송에 실패한 경우
{
"status": 400,
"code": 40000,
"message": "Failed to send message",
"detail": ""
}
401 Unauthorized - 인증 실패
예시: 토큰이 누락된 경우
{
"status": 401,
"code": 40100,
"message": "Unauthorized",
"detail": ""
}
404 Not Found - 찾을 수 없음
예시: 사용자 사이클을 찾을 수 없는 경우
{
"status": 404,
"code": 40400,
"message": "User cycle not found",
"detail": ""
}