serviceUpdateMessage: unarchive

Namespace: microsoft.graph

Unarchive a list of serviceUpdateMessages for the signed in user.

Permissions

One of the following permissions is required to call this API. To learn more, including how to choose permissions, see Permissions.

Permission type Permissions (from least to most privileged)
Delegated (work or school account) ServiceMessageViewpoint.Write
Delegated (personal Microsoft account) Not supported.
Application Not supported

HTTP request

POST /admin/serviceAnnouncement/messages/unarchive

Request headers

Name Description
Authorization Bearer {token}. Required.
Content-Type application/json. Required.

Request body

In the request body, supply a JSON representation of the parameters.

The following table shows the parameters that can be used with this action.

Parameter Type Description
messageIds String collection List of message IDs to unarchive.

Response

If successful, this action returns a 200 OK response code and a Boolean value true in the response body. Otherwise, will return false in the response body.

Example

Request

POST https://graph.microsoft.com/v1.0/admin/serviceAnnouncement/messages/unarchive
Content-Type: application/json

{
  "messageIds": ["MC172851", "MC167983"]
}

Response

HTTP/1.1 200 OK
Content-Type: application/json

{
  "value": true
}