Skip to content

Latest commit

 

History

History
113 lines (83 loc) · 4.21 KB

File metadata and controls

113 lines (83 loc) · 4.21 KB
title teamworkDevice: restart
description Restart the specified Microsoft Teams-enabled device.
author adsrivastava2
ms.localizationpriority medium
ms.subservice teams
doc_type apiPageType
ms.date 04/04/2024

teamworkDevice: restart

Namespace: microsoft.graph

[!INCLUDE beta-deprecation-disclaimer]

[!INCLUDE beta-disclaimer]

Restart the specified Microsoft Teams-enabled device asynchronously.

A device is restarted after the async operation completes successfully, which might occur subsequent to a response from this API.

[!INCLUDE teamworkdevice-api-disclaimer]

[!INCLUDE national-cloud-support]

Permissions

Choose the permission or permissions marked as least privileged for this API. Use a higher privileged permission or permissions only if your app requires it. For details about delegated and application permissions, see Permission types. To learn more about these permissions, see the permissions reference.

[!INCLUDE permissions-table]

HTTP request

POST /teamwork/devices/{teamworkDeviceId}/restart

Request headers

Name Description
Authorization Bearer {token}. Required. Learn more about authentication and authorization.

Request body

Don't supply a request body for this method.

Response

If successful, this method returns a 202 Accepted response code. The response will also contain a Location header, which contains the location of the teamworkDeviceOperation resource. You can check the status of the restart operation by making a GET request to this location that returns whether the operation is queued, succeeded, or failed.

This method also returns a 409 Conflict response code if the operation is already in queued state.

Examples

Request

POST https://graph.microsoft.com/beta/teamwork/devices/0f3ce432-e432-0f3c-32e4-3c0f32e43c0f/restart

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]


Response

HTTP/1.1 202 Accepted
Location: /teamwork/devices/0f3ce432-e432-0f3c-32e4-3c0f32e43c0f/operations/119eb06d-0c4b-4fb3-a754-33dd0d6b618c
Content-Type: text/plain
Content-Length: 0