Changes the proposed configuration of the caller's own open suggestion.
PATCH
/case/{caseId}/suggest/{codeId}/{suggestionId}
curl \
--request PATCH 'http://api.example.com/case/{caseId}/suggest/{codeId}/{suggestionId}' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--header "organization: string" \
--data '{
"suggestion": {
"type": "allow_client",
"ignoreMediaPermissionAndroid": false,
"origin": "string",
"enableFileUpload": false,
"enableLocalExport": {
"formats": [],
"defaultConfig": {
"chunkType": "none",
"includeAttachments": true
}
},
"allowClient": {
"allowSocialApps": [],
"allowShareAll": false
},
"autoShare": {
"allowClientApproval": true,
"allowAdditionalShare": true,
"searches": [
{
"type": "name",
"values": [
"string"
],
"apps": [],
"dateRange": {
"start": "string",
"end": "string"
},
"exactMatch": false,
"include": true,
"conversationType": "all"
}
]
},
"shareAll": {
"apps": [
"string"
],
"includeAttachments": true,
"dateRange": {
"start": "string",
"end": "string"
},
"searchesExclude": [
{
"type": "name",
"values": [
"string"
],
"apps": [
"string"
],
"exactMatch": true,
"conversationType": "all"
}
]
},
"dateRange": {
"start": "string",
"end": "string"
},
"appConfig": {
"conversionConcurrency": {
"mediaType": "images",
"concurrency": [
42.0
]
},
"compressionConcurrency": {
"mediaType": "images",
"concurrency": [
42.0
]
},
"enableLocalMediaConversion": false,
"enableLocalMediaCompression": false,
"enableIosEncryptedBackupExtraction": false,
"allowOnlyEncryptedIosBackup": false,
"autoIncludeSafariData": false,
"autoIncludeNotesData": false,
"autoIncludeContacts": false,
"shareAction": "share"
}
}
}'
Request examples
# Headers
organization: string
# Payload
{
"suggestion": {
"type": "allow_client",
"ignoreMediaPermissionAndroid": false,
"origin": "string",
"enableFileUpload": false,
"enableLocalExport": {
"formats": [],
"defaultConfig": {
"chunkType": "none",
"includeAttachments": true
}
},
"allowClient": {
"allowSocialApps": [],
"allowShareAll": false
},
"autoShare": {
"allowClientApproval": true,
"allowAdditionalShare": true,
"searches": [
{
"type": "name",
"values": [
"string"
],
"apps": [],
"dateRange": {
"start": "string",
"end": "string"
},
"exactMatch": false,
"include": true,
"conversationType": "all"
}
]
},
"shareAll": {
"apps": [
"string"
],
"includeAttachments": true,
"dateRange": {
"start": "string",
"end": "string"
},
"searchesExclude": [
{
"type": "name",
"values": [
"string"
],
"apps": [
"string"
],
"exactMatch": true,
"conversationType": "all"
}
]
},
"dateRange": {
"start": "string",
"end": "string"
},
"appConfig": {
"conversionConcurrency": {
"mediaType": "images",
"concurrency": [
42.0
]
},
"compressionConcurrency": {
"mediaType": "images",
"concurrency": [
42.0
]
},
"enableLocalMediaConversion": false,
"enableLocalMediaCompression": false,
"enableIosEncryptedBackupExtraction": false,
"allowOnlyEncryptedIosBackup": false,
"autoIncludeSafariData": false,
"autoIncludeNotesData": false,
"autoIncludeContacts": false,
"shareAction": "share"
}
}
}
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"
}