Getting Posts

Returns a resource representation of a backed-up Microsoft Teams post with a specified ID.

Request

GET https://<hostname>:4443/v5/RestoreSessions/{restoreSessionId}/organization/teams/{teamId}/posts/{postId}[?channelId=<channelId>]

Request Headers

The request header must contain an authorization token of the current session.

Request Parameters

The following optional parameter can be specified in the URL of the request.

Parameter

Type

Description

channelId

string

Specifies the ID of the channel whose post the server will return in the resource representation.

Request Body

None.

Response

The server returns the following response to the client.

Response Codes

A successfully completed operation returns a response code 200 (OK).

Response Headers

The response to this request contains the following headers. The response may also include additional standard HTTPS headers.

Header

Description

Content-length

The length of the response body.

Content-type

The media type and syntax of the response body message: application/json; charset=utf-8

Response Body

In the response body, the server returns a representation of the /RestoreSessions/{restoreSessionId}/organization/teams/{teamId}/posts/{postId} resource. The resource has the following properties:

Property

Type

Description

ID

string

ID of the post.

IsImportant

boolean

Defines whether the post is marked as important.

Author

string

User name of the author of the post.

Subject

string

Subject of the post.

CreatedTime

datetime

Date and time when the post was created.

LastModificationTime

datetime

Date and time of the latest modification of the post.

Attachments

object[]

Attachments of the post.

_links

Dictionary of string [key] and Object [value]

Links to related resources (navigation property).

Example

The following request returns a representation of the Microsoft Teams post with ID 1600943113431.

Request:

GET https://abc.tech.local:4443/v5/RestoreSessions/e9921c25-6845-4c6f-a913-bc03b712483a/organization/teams/448c5b66-8dcd-4c75-b636-d3b500bce36f/posts/1600943113431

 

Request Header:

Authorization: Bearer <Access-Token>

 

Response:

200 OK

 

Response Body:

{

 "id": 1600943113431,

 "isImportant": false,

 "author": "admin",

 "subject": "announcement",

 "createdTime": "2020-09-24T10:25:13.431Z",

 "lastModifiedTime": "2020-09-24T10:45:16.471Z",

 "attachments": [],

 "_links": {

   "self": {

     "href": "https://abc.tech.local:4443/v5/restoresessions/e9921c25-6845-4c6f-a913-bc03b712483a/organization/teams/448c5b66-8dcd-4c75-b636-d3b500bce36f/posts/1600943113431?channelId=19:94e57dbfaa634f999353b374b69b5800@thread.tacv2"

   },

   "channel": {

     "href": "https://abc.tech.local:4443/v5/restoresessions/e9921c25-6845-4c6f-a913-bc03b712483a/organization/teams/448c5b66-8dcd-4c75-b636-d3b500bce36f/channels/19:94e57dbfaa634f999353b374b69b5800@thread.tacv2"

   },

   "team": {

     "href": "https://abc.tech.local:4443/v5/restoresessions/e9921c25-6845-4c6f-a913-bc03b712483a/organization/teams/448c5b66-8dcd-4c75-b636-d3b500bce36f"

   },

   "children": {

     "href": "https://abc.tech.local:4443/v5/restoresessions/e9921c25-6845-4c6f-a913-bc03b712483a/organization/teams/448c5b66-8dcd-4c75-b636-d3b500bce36f/posts?channelId=19:94e57dbfaa634f999353b374b69b5800@thread.tacv2&parentId=1600943113431"

   }

 }

}

I want to report a typo

There is a misspelling right here:

 

I want to let the Veeam Documentation Team know about that.