Refresh Session

Use this API to refresh an existing workbook session.


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) Files.ReadWrite
Delegated (personal Microsoft account) Not supported.
Application Not supported.

HTTP request

POST /workbook/refreshSession
workbook-session-id: {session-id}

Request headers

Name Description
Authorization Bearer {token}. Required.
workbook-session-id Workbook session Id to be refreshed

Request body

This API does not require any request body.


If successful, this method returns 204 No Content response code.



Here is an example of the request.

Content-type: application/json
workbook-session-id: {session-id}
Content-length: 0



Note that workbook-session-id header is required.


Here is an example of the response.

HTTP/1.1 204 No Content

SDK sample code

GraphServiceClient graphClient = new GraphServiceClient( authProvider );

await graphClient.Me.Drive.Items["{id}"].Workbook

Read the SDK documentation for details on how to add the SDK to your project and create an authProvider instance.