Skip to content

Commit

Permalink
Merge pull request #23944 from microsoftgraph/lauragra-fix21884
Browse files Browse the repository at this point in the history
Update to fix user feedback.
  • Loading branch information
Lauragra authored Mar 20, 2024
2 parents 4db6a2a + 1aabef0 commit 4195428
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 23 deletions.
22 changes: 12 additions & 10 deletions api-reference/beta/api/worksheetcollection-add.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
---
title: "WorksheetCollection: add"
description: ".activate() on it."
title: "worksheetCollection: add"
description: "Add a new worksheet to the workbook."
author: "lumine2008"
ms.localizationpriority: medium
ms.prod: "excel"
doc_type: apiPageType
---

# WorksheetCollection: add
# worksheetCollection: add

Namespace: microsoft.graph

[!INCLUDE [beta-disclaimer](../../includes/beta-disclaimer.md)]

Adds a new worksheet to the workbook. The worksheet is added at the end of existing worksheets. If you wish to activate the newly added worksheet, call ".activate() on it.
Add a new worksheet to the workbook. The worksheet is added at the end of existing worksheets. If you want to activate the newly added worksheet, call ".activate() on it.

[!INCLUDE [national-cloud-support](../../includes/global-us.md)]

Expand All @@ -34,7 +34,7 @@ POST /me/drive/root:/{item-path}:/workbook/worksheets/add
| Name | Description|
|:---------------|:----------|
|Authorization|Bearer {token}. Required. Learn more about [authentication and authorization](/graph/auth/auth-concepts).|
| Workbook-Session-Id | Workbook session Id that determines if changes are persisted or not. Optional.|
| Workbook-Session-Id | Workbook session ID that determines whether changes are persisted. Optional.|

## Request body
In the request body, provide a JSON object with the following parameters.
Expand All @@ -47,9 +47,9 @@ In the request body, provide a JSON object with the following parameters.

If successful, this method returns `200 OK` response code and [workbookWorksheet](../resources/workbookworksheet.md) object in the response body.

## Example
Here's an example of how to call this API.
##### Request
## Examples

### Request
The following example shows a request.

# [HTTP](#tab/http)
Expand Down Expand Up @@ -96,8 +96,10 @@ Content-type: application/json

---

##### Response
The following example shows the response. Note: The response object shown here might be shortened for readability.
### Response
The following example shows the response.

>**Note:** The response object shown here might be shortened for readability.
<!-- {
"blockType": "response",
"truncated": true,
Expand Down
28 changes: 15 additions & 13 deletions api-reference/v1.0/api/worksheetcollection-add.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
---
title: "WorksheetCollection: add"
description: ".activate() on it."
title: "worksheetCollection: add"
description: "Add a new worksheet to the workbook."
author: "lumine2008"
ms.localizationpriority: medium
ms.prod: "excel"
doc_type: apiPageType
---

# WorksheetCollection: add
# worksheetCollection: add

Namespace: microsoft.graph

Adds a new worksheet to the workbook. The worksheet is added at the end of existing worksheets. If you wish to activate the newly added worksheet, call .activate() on it.
Add a new worksheet to the workbook. The worksheet is added at the end of existing worksheets. If you want to activate the newly added worksheet, call `.activate()` on it.

[!INCLUDE [national-cloud-support](../../includes/global-us.md)]

Expand All @@ -24,15 +24,15 @@ Choose the permission or permissions marked as least privileged for this API. Us
## HTTP request
<!-- { "blockType": "ignored" } -->
```http
POST /me/drive/items/{id}/workbook/worksheets
POST /me/drive/root:/{item-path}:/workbook/worksheets
POST /me/drive/items/{id}/workbook/worksheets/add
POST /me/drive/root:/{item-path}:/workbook/worksheets/add
```
## Request headers
| Name | Description|
|:---------------|:----------|
|Authorization|Bearer {token}. Required. Learn more about [authentication and authorization](/graph/auth/auth-concepts).|
| Workbook-Session-Id | Workbook session Id that determines if changes are persisted or not. Optional.|
| Workbook-Session-Id | Workbook session ID that determines whether changes are persisted. Optional.|

## Request body
In the request body, provide a JSON object with the following parameters.
Expand All @@ -43,11 +43,11 @@ In the request body, provide a JSON object with the following parameters.

## Response

If successful, this method returns `201 Created` response code and [WorkbookWorksheet](../resources/worksheet.md) object in the response body.
If successful, this method returns `201 Created` response code and [workbookWorksheet](../resources/worksheet.md) object in the response body.

## Example
Here's an example of how to call this API.
##### Request
## Examples

### Request
The following example shows a request.

# [HTTP](#tab/http)
Expand Down Expand Up @@ -94,8 +94,10 @@ Content-type: application/json

---

##### Response
The following example shows the response. Note: The response object shown here might be shortened for readability.
### Response
The following example shows the response.

>**Note:** The response object shown here might be shortened for readability.
<!-- {
"blockType": "response",
"truncated": true,
Expand Down

0 comments on commit 4195428

Please sign in to comment.