Update Member Comments
1 min
PUT
https://api.b.preview.loyaltyservices.io/api/v3/members/{memberIdentifier}/comments/{commentId}
Path Parameters
- memberIdentifierstringrequiredDescriptionMin Length1Max Length200
- commentIdstringrequiredDescriptionMin Length1Max Length10
Body Parameters
- bodyMemberCommentRequestrequired
- memberCommentIdinteger<int64>ExampleDescriptionFormatint64
- reasonstringExampleDescription
- subReasonstringExampleDescription
- statusstringrequiredExampleDescriptionDefaultC
- commentstringrequiredExampleDescription
- followUpFlagbooleanDescriptionDefaultfalse
- followUpDatestring<date>DescriptionFormatdate
- assignedToCodeinteger<int64>DescriptionFormatint64
- correspondenceToSendToMemberIdinteger<int64>DescriptionFormatint64
- externalReferenceIdstringDescription
- bonusRuleIdinteger<int64>DescriptionFormatint64
- commentCloseReasonstringDescription
- commentTypestringDescription
- titlestringDescription
- closedDatestring<date>DescriptionFormatdate
Responses
200
- MemberComment
- memberCommentIdinteger<int64>DescriptionFormatint64
- memberCommentTypestringDescription
- memberIdentifierstringDescription
- accountNumberstringDescription
- companyNamestringDescription
- memberNamestringDescription
- memberTypestringDescription
- commentNamestringDescription
- titlestringDescription
- statusstringDescription
- followUpFlagbooleanDescription
- followUpDatestring<date>DescriptionFormatdate
- assignedTostringDescription
- createDateTimestring<date-time>DescriptionFormatdate-time
- updateDateTimestring<date-time>DescriptionFormatdate-time
- exceedsSLAbooleanDescription
- lockedbooleanDescription
- lockerIdinteger<int64>DescriptionFormatint64
- lockerNamestringDescription
- lockerRankinteger<int32>DescriptionFormatint32
- closedDatestring<date>DescriptionFormatdate
- reasonstringDescription
- subReasonstringDescription
- correspondenceToSendToMemberIdinteger<int64>DescriptionFormatint64
- externalReferencestringDescription
- commentsMemberCommentDetail[]Description
- createDatestring<date-time>DescriptionFormatdate-time
- createdBystringDescription
- userEmailstringDescription
- commentstringDescription
- assignedToUserstringDescription
- assignedToRolestringDescription
- reassignedbooleanDescription
- assignedFromUserstringDescription
- assignedFromRolestringDescription
- customDataCustomData
- ace01stringDescription
- ace01DescriptionstringDescription
- ace02stringDescription
- ace02DescriptionstringDescription
- ace03stringDescription
- ace03DescriptionstringDescription
- ace04stringDescription
- ace04DescriptionstringDescription
- ace05stringDescription
- ace05DescriptionstringDescription
- ace06stringDescription
- ace06DescriptionstringDescription
- ace07stringDescription
- ace07DescriptionstringDescription
- ace08stringDescription
- ace08DescriptionstringDescription
- ace09stringDescription
- ace09DescriptionstringDescription
- ace10stringDescription
- ace10DescriptionstringDescription
- ace11stringDescription
- ace11DescriptionstringDescription
- ace12stringDescription
- ace12DescriptionstringDescription
- ace13stringDescription
- ace13DescriptionstringDescription
- ace14stringDescription
- ace14DescriptionstringDescription
- ace15stringDescription
- ace15DescriptionstringDescription
- externalProgramstringDescription
- externalProgramStatusstringDescription
- sourceApplicationIPstringDescription
- commentCloseReasonstringDescription
- memberCommentImagesMemberCommentImageData[]Description
- imageIdinteger<int64>Formatint64
- statusstringDescription
- tagstringDescription
- formatstringDescription
- closedDateTimestring<date-time>DescriptionFormatdate-time
- createdBystringDescription
- updatedBystringDescription
- firstCommentstringDescription
- statusDescriptionstringDescription
- reasonDescriptionstringDescription
- subReasonDescriptionstringDescription
400
- ErrorResponse
- errorsValidationError[]Description
- codestringDescription
- fieldNamestringDescription
- messagestringDescription
- messageParametersobject[]Description
401
403
500
curl
curl --request PUT \
--url https://api.b.preview.loyaltyservices.io/api/v3/members/{memberIdentifier}/comments/{commentId} \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{
"status": "C",
"comment": "Adding member adjustment to account 12345X"
}'javascript
var myHeaders = new Headers();
myHeaders.append("accept", "application/json");
myHeaders.append("content-type", "application/json");
var raw = JSON.stringify({
"status": "C",
"comment": "Adding member adjustment to account 12345X"
});
var requestOptions = {
method: 'PUT',
headers: myHeaders,
body: raw,
redirect: 'follow'
};
fetch("https://api.b.preview.loyaltyservices.io/api/v3/members/{memberIdentifier}/comments/{commentId}", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));ruby
require "uri"
require "json"
require "net/http"
url = URI("https://api.b.preview.loyaltyservices.io/api/v3/members/{memberIdentifier}/comments/{commentId}")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Put.new(url)
request["accept"] = "application/json"
request["content-type"] = "application/json"
request.body = JSON.dump({
"status": "C",
"comment": "Adding member adjustment to account 12345X"
})
response = https.request(request)
puts response.read_body
python
import requests
import json
url = "https://api.b.preview.loyaltyservices.io/api/v3/members/{memberIdentifier}/comments/{commentId}"
payload = json.dumps({
"status": "C",
"comment": "Adding member adjustment to account 12345X"
})
headers = {
'accept': 'application/json',
'content-type': 'application/json'
}
response = requests.request("PUT", url, headers=headers, data=payload)
print(response.text)
200
// Success
{
"memberCommentId": "",
"memberCommentType": "",
"memberIdentifier": "",
"accountNumber": "",
"companyName": "",
"memberName": "",
"memberType": "",
"commentName": "",
"title": "",
"status": "",
"followUpFlag": false,
"followUpDate": "",
"assignedTo": "",
"createDateTime": "",
"updateDateTime": "",
"exceedsSLA": false,
"locked": false,
"lockerId": "",
"lockerName": "",
"lockerRank": "",
"closedDate": "",
"reason": "",
"subReason": "",
"correspondenceToSendToMemberId": "",
"externalReference": "",
"comments": [
{
"createDate": "",
"createdBy": "",
"userEmail": "",
"comment": "",
"assignedToUser": "",
"assignedToRole": "",
"reassigned": false,
"assignedFromUser": "",
"assignedFromRole": ""
}
],
"customData": {
"ace01": "",
"ace01Description": "",
"ace02": "",
"ace02Description": "",
"ace03": "",
"ace03Description": "",
"ace04": "",
"ace04Description": "",
"ace05": "",
"ace05Description": "",
"ace06": "",
"ace06Description": "",
"ace07": "",
"ace07Description": "",
"ace08": "",
"ace08Description": "",
"ace09": "",
"ace09Description": "",
"ace10": "",
"ace10Description": "",
"ace11": "",
"ace11Description": "",
"ace12": "",
"ace12Description": "",
"ace13": "",
"ace13Description": "",
"ace14": "",
"ace14Description": "",
"ace15": "",
"ace15Description": ""
},
"externalProgram": "",
"externalProgramStatus": "",
"sourceApplicationIP": "",
"commentCloseReason": "",
"memberCommentImages": [
{
"imageId": "",
"status": "",
"tag": "",
"format": ""
}
],
"closedDateTime": "",
"createdBy": "",
"updatedBy": "",
"firstComment": "",
"statusDescription": "",
"reasonDescription": "",
"subReasonDescription": ""
}400
// Bad request
{
"errors": [
{
"code": "",
"fieldName": "",
"message": "",
"messageParameters": [
{}
]
}
]
}401
// Unauthorized
403
// Forbidden
500
// Internal error