Rejects a suggestion, with an optional message. Only the side opposite the suggester can reject. The extraction code is not changed.
PATCH
/case/{caseId}/suggest/{codeId}/{suggestionId}/reject
curl \
--request PATCH 'http://api.example.com/case/{caseId}/suggest/{codeId}/{suggestionId}/reject' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--header "organization: string" \
--data '{
"message": "string"
}'
Request examples
# Headers
organization: string
# Payload
{
"message": "string"
}
Response examples (200)
{
"data": {
"createdAt": "2026-01-15T14:30:00.000Z",
"updatedAt": "2026-01-15T14:30:00.000Z",
"id": "507f1f77bcf86cd799439011",
"status": "open",
"suggestion": {
"type": "share_all"
},
"previousConfig": {
"type": "allow_client"
},
"extractionCode": "507f1f77bcf86cd799439012",
"case": "507f1f77bcf86cd799439011",
"suggestedBy": "507f1f77bcf86cd799439013",
"suggestedAt": "2026-01-15T14:30:00.000Z",
"approvedBy": "string",
"approvedAt": "2026-05-04T09:42:00Z",
"rejectedBy": "string",
"rejectedAt": "2026-05-04T09:42:00Z",
"mergedAt": "2026-05-04T09:42:00Z",
"messages": [
{
"text": "Please include WhatsApp.",
"date": "2026-01-15T14:35:00.000Z",
"user": "507f1f77bcf86cd799439013",
"statusUpdate": "open"
}
]
},
"statusCode": 200,
"timestamp": "2026-01-15T10:15:00.000Z"
}