Close Session

Namespace: microsoft.graph

Use this API to close 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/closeSession
workbook-session-id: {session-id}

Request headers

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

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