Tigris Social Api

<back to all web services

CreatePost

Creates a Post.
Parameters:
NameParameterData TypeRequiredDescription
AuthorIdbodystringYesThe AuthorId field is a string GUID uniquely identifying the Tigris user creating the post.
ContextIdbodystringYesThe Id of the Venue that is the context of a Post.
ContentbodystringYesThis is the message text.
MessageTypebodystringNoThis is the type of message. 1 (Broadcast), 2 (ActionRequired), 3 (Informational), the default value is 3.
RecipientsbodystringNoA comma-separated list of Tigris Ids (Guids). Required for Private Posts. Must be empty for Public Posts.
NetworksbodystringNoA comma-separated list of Tigris Ids (Guids). Required for Alerts/System Posts. Must be empty for Public Posts.
SystemTagsbodystringNoA comma-separated list of Tag values (strings). All tags created using this list will be of the System TagType.
UserTagsbodystringNoA comma-separated list of Tag values (strings). All tags created using this list will be of the User TagType.
ExpirationDatebodystringNoThe ExpirationDate is the DateTime (in UTC) indicating the time the post will no longer be viewable. The Default value is Jan 1, 3000.
CreatedTimebodystringNoThe CreatedTime is the DateTime (in UTC) indicating the time the post content is created. The Default value is the current DateTime.
UpdatedTimebodystringNoThe UpdatedTime is the DateTime (in UTC) indicating the time the post conent was last updated. The Default value is the current DateTime.
TagNamesbodystringNoA comma separated list of Tags indicating the Tag Name that are sent with a post.
ContentKeybodystringNoKey associated with post in the resource file.
ContentParametersbodystringNoA comma separated list of parameters associated with the posts in resource file.
UrlbodystringNoThis is the url to redirect to the correponding post related page.

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

HTTP + SOAP12

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

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

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

<CreatePost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mi.Sno.Tigris.TigrisApi.ServiceModel.InputModels.Posts">
  <AuthorId>00000000-0000-0000-0000-000000000000</AuthorId>
  <Content>String</Content>
  <ContentKey>String</ContentKey>
  <ContentParameters>String</ContentParameters>
  <ContextId>00000000-0000-0000-0000-000000000000</ContextId>
  <CreatedTime>0001-01-01T00:00:00</CreatedTime>
  <ExpirationDate>0001-01-01T00:00:00</ExpirationDate>
  <MessageType>0</MessageType>
  <Networks>String</Networks>
  <Recipients>String</Recipients>
  <SystemTags>String</SystemTags>
  <TagNames>String</TagNames>
  <UpdatedTime>0001-01-01T00:00:00</UpdatedTime>
  <Url>String</Url>
  <UserTags>String</UserTags>
</CreatePost>

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

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

<PostDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mi.Sno.Tigris.TigrisApi.ServiceModel.Types">
  <Activities>
    <ActivityDto>
      <CreatedTime>0001-01-01T00:00:00</CreatedTime>
      <Id>00000000-0000-0000-0000-000000000000</Id>
      <Message>String</Message>
      <PostId>00000000-0000-0000-0000-000000000000</PostId>
    </ActivityDto>
  </Activities>
  <AuthorDisplayName>String</AuthorDisplayName>
  <AuthorId>00000000-0000-0000-0000-000000000000</AuthorId>
  <AuthorTagline>String</AuthorTagline>
  <AuthorType>String</AuthorType>
  <AuthorVenueId>00000000-0000-0000-0000-000000000000</AuthorVenueId>
  <Comments>
    <CommentDto>
      <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>
  </Comments>
  <Content>String</Content>
  <ContentCreatedTime>0001-01-01T00:00:00</ContentCreatedTime>
  <ContentKey>String</ContentKey>
  <ContentParameters>String</ContentParameters>
  <ContentUpdatedTime>0001-01-01T00:00:00</ContentUpdatedTime>
  <ContextId>00000000-0000-0000-0000-000000000000</ContextId>
  <ContextOwnerDisplayName>String</ContextOwnerDisplayName>
  <ContextOwnerTagLine>String</ContextOwnerTagLine>
  <ContextOwnerType>String</ContextOwnerType>
  <CreatedTime>0001-01-01T00:00:00</CreatedTime>
  <ExpirationDate>0001-01-01T00:00:00</ExpirationDate>
  <Id>00000000-0000-0000-0000-000000000000</Id>
  <IsPrivate>false</IsPrivate>
  <MessageType>0</MessageType>
  <PostTags>
    <PostTagSummaryDto>
      <Description>String</Description>
      <Id>00000000-0000-0000-0000-000000000000</Id>
      <Name>String</Name>
      <TagTypeId>0</TagTypeId>
    </PostTagSummaryDto>
  </PostTags>
  <Recipients>
    <RecipientDto>
      <DefaultVenueId>00000000-0000-0000-0000-000000000000</DefaultVenueId>
      <DisplayName>String</DisplayName>
      <Id>00000000-0000-0000-0000-000000000000</Id>
      <ParticipantType>String</ParticipantType>
      <TagLine>String</TagLine>
    </RecipientDto>
  </Recipients>
  <Tags>
    <TagDto>
      <CreatedTime>0001-01-01T00:00:00</CreatedTime>
      <Id>00000000-0000-0000-0000-000000000000</Id>
      <PostId>00000000-0000-0000-0000-000000000000</PostId>
      <TagType>0</TagType>
      <UpdatedTime>0001-01-01T00:00:00</UpdatedTime>
      <Value>String</Value>
    </TagDto>
  </Tags>
  <UpdatedTime>0001-01-01T00:00:00</UpdatedTime>
  <Url>String</Url>
</PostDto>

    </soap12:Body>
</soap12:Envelope>