Tigris Social Api

<back to all web services

CreateComment

Creates a Comment to a Post.
Creates a Comment to a Post.
Parameters:
NameParameterData TypeRequiredDescription
PostIdpathstringYesThe PostId field is a string GUID uniquely identifying the post that the comment is associated with.
AuthorIdbodystringYesThe AuthorId field is the TigrisId (a string GUID) uniquely identifying the user that created the comment.
ContentbodystringYesThe Content field is the message or text of the comment.
CreatedTimebodystringNoThe CreatedTime is the DateTime (in UTC) that the Comment content was initially created. This field determines the display order of Comments, which are shown in chronological order of creation from oldest to newest.

To override the Content-type in your clients HTTP Accept Header, append the .soap11 suffix or ?format=soap11

HTTP + SOAP11

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /soap11 HTTP/1.1 
Host: api.tigris.mymitchell.com 
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: CreateComment

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body>

<CreateComment xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mi.Sno.Tigris.TigrisApi.ServiceModel.InputModels.Comments">
  <AuthorId>00000000-0000-0000-0000-000000000000</AuthorId>
  <Content>String</Content>
  <CreatedTime>0001-01-01T00:00:00</CreatedTime>
  <PostId>00000000-0000-0000-0000-000000000000</PostId>
</CreateComment>

    </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body>

<CommentDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mi.Sno.Tigris.TigrisApi.ServiceModel.Types">
  <AuthorDisplayName>String</AuthorDisplayName>
  <AuthorId>00000000-0000-0000-0000-000000000000</AuthorId>
  <AuthorTagline>String</AuthorTagline>
  <AuthorType>String</AuthorType>
  <AuthorVenueId>00000000-0000-0000-0000-000000000000</AuthorVenueId>
  <Content>String</Content>
  <ContentCreatedTime>0001-01-01T00:00:00</ContentCreatedTime>
  <ContextId>00000000-0000-0000-0000-000000000000</ContextId>
  <CreatedTime>0001-01-01T00:00:00</CreatedTime>
  <Id>00000000-0000-0000-0000-000000000000</Id>
  <PostId>00000000-0000-0000-0000-000000000000</PostId>
  <UpdatedTime>0001-01-01T00:00:00</UpdatedTime>
</CommentDto>

    </soap:Body>
</soap:Envelope>