POST
/api/v1/swap-requests/{id}/chat
curl \
--request POST 'http://localhost:8080/api/v1/swap-requests/{id}/chat?userId=string&request=%7B%7D'
Response examples (500)
{
"error": {
"code": "string",
"message": "string",
"target": "string",
"details": [
{
"code": "string",
"message": "string",
"target": "string"
}
]
}
}
Response examples (401)
{
"error": {
"code": "string",
"message": "string",
"target": "string",
"details": [
{
"code": "string",
"message": "string",
"target": "string"
}
]
}
}
Response examples (201)
{
"id": "string",
"swapRequestId": "string",
"sender": {
"id": "string",
"name": "string"
},
"message": "string",
"imageUrls": [
"string"
],
"sentAt": "2025-05-04T09:42:00Z",
"readByReceiver": true,
"ownMessage": true,
"swapContext": {
"requestedBook": {
"id": "string",
"title": "string",
"author": "string",
"condition": "string",
"coverPhotoUrl": "string"
},
"offeredBook": {
"id": "string",
"title": "string",
"author": "string",
"condition": "string",
"coverPhotoUrl": "string"
},
"offeredGenreName": "string",
"swapType": "string",
"swapStatus": "string",
"askForGiveaway": true
}
}