PUT api/content/v4/addcheckincomment
Request Information
URI Parameters
None.
Body Parameters
APICheckInComment| Name | Description | Type | Additional information |
|---|---|---|---|
| UserUniqueId | integer |
None. |
|
| CustomerId | integer |
None. |
|
| UniqueId | globally unique identifier |
None. |
|
| Comment | string |
None. |
|
| CheckinHistoryId | integer |
None. |
|
| CheckinCommentId | integer |
None. |
|
| ParentCommentId | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"UserUniqueId": 1,
"CustomerId": 2,
"UniqueId": "50a39a0f-8df2-486c-bcd4-b0087d02ebd6",
"Comment": "sample string 4",
"CheckinHistoryId": 5,
"CheckinCommentId": 6,
"ParentCommentId": 7
}
application/xml, text/xml
Sample:
<APICheckInComment xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Tsunami.Model"> <CheckinCommentId>6</CheckinCommentId> <CheckinHistoryId>5</CheckinHistoryId> <Comment>sample string 4</Comment> <CustomerId>2</CustomerId> <ParentCommentId>7</ParentCommentId> <UniqueId>50a39a0f-8df2-486c-bcd4-b0087d02ebd6</UniqueId> <UserUniqueId>1</UserUniqueId> </APICheckInComment>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
APICommonWrapperOfAPIComments| Name | Description | Type | Additional information |
|---|---|---|---|
| Status | HttpStatusCode |
None. |
|
| Message | string |
None. |
|
| Data | APIComments |
None. |
Response Formats
application/json, text/json
Sample:
{
"Status": 100,
"Message": "sample string 1",
"Data": {
"Id": 1,
"ContactId": 2,
"Comment": "sample string 3",
"IsToasted": true,
"CreatedDate": 4,
"Contacts": {
"Id": 1,
"FirstName": "sample string 2",
"LastName": "sample string 3",
"City": "sample string 4",
"Email": "sample string 5",
"CompanyName": "sample string 6",
"ProfileBase64": "sample string 7",
"PhotoURL": "sample string 8"
},
"ChildComments": [
{
"Id": 1,
"Comment": "sample string 2",
"IsLike": true,
"CreatedDate": 3,
"Contacts": {
"Id": 1,
"FirstName": "sample string 2",
"LastName": "sample string 3",
"City": "sample string 4",
"Email": "sample string 5",
"CompanyName": "sample string 6",
"ProfileBase64": "sample string 7",
"PhotoURL": "sample string 8"
}
},
{
"Id": 1,
"Comment": "sample string 2",
"IsLike": true,
"CreatedDate": 3,
"Contacts": {
"Id": 1,
"FirstName": "sample string 2",
"LastName": "sample string 3",
"City": "sample string 4",
"Email": "sample string 5",
"CompanyName": "sample string 6",
"ProfileBase64": "sample string 7",
"PhotoURL": "sample string 8"
}
}
],
"AllowUpdate": true
}
}
application/xml, text/xml
Sample:
<APICommonWrapperOfAPICommentsZdSfSp5S xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Tsunami.Model">
<Data>
<AllowUpdate>true</AllowUpdate>
<ChildComments>
<APIChildComments>
<Comment>sample string 2</Comment>
<Contacts>
<City>sample string 4</City>
<CompanyName>sample string 6</CompanyName>
<Email>sample string 5</Email>
<FirstName>sample string 2</FirstName>
<Id>1</Id>
<LastName>sample string 3</LastName>
<PhotoURL>sample string 8</PhotoURL>
<ProfileBase64>sample string 7</ProfileBase64>
</Contacts>
<CreatedDate>3</CreatedDate>
<Id>1</Id>
<IsLike>true</IsLike>
</APIChildComments>
<APIChildComments>
<Comment>sample string 2</Comment>
<Contacts>
<City>sample string 4</City>
<CompanyName>sample string 6</CompanyName>
<Email>sample string 5</Email>
<FirstName>sample string 2</FirstName>
<Id>1</Id>
<LastName>sample string 3</LastName>
<PhotoURL>sample string 8</PhotoURL>
<ProfileBase64>sample string 7</ProfileBase64>
</Contacts>
<CreatedDate>3</CreatedDate>
<Id>1</Id>
<IsLike>true</IsLike>
</APIChildComments>
</ChildComments>
<Comment>sample string 3</Comment>
<ContactId>2</ContactId>
<Contacts>
<City>sample string 4</City>
<CompanyName>sample string 6</CompanyName>
<Email>sample string 5</Email>
<FirstName>sample string 2</FirstName>
<Id>1</Id>
<LastName>sample string 3</LastName>
<PhotoURL>sample string 8</PhotoURL>
<ProfileBase64>sample string 7</ProfileBase64>
</Contacts>
<CreatedDate>4</CreatedDate>
<Id>1</Id>
<IsToasted>true</IsToasted>
</Data>
<Message>sample string 1</Message>
<Status>Continue</Status>
</APICommonWrapperOfAPICommentsZdSfSp5S>