From 704e8c23c296db229d5d61066b6274e84bf9feab Mon Sep 17 00:00:00 2001 From: Martin Machacek Date: Mon, 29 Dec 2025 17:55:00 +0100 Subject: [PATCH] Improves examples requests and responses --- .../beta/api/workbook-list-worksheets.md | 8 ++++---- api-reference/beta/api/worksheet-delete.md | 4 ++-- api-reference/beta/api/worksheet-get.md | 8 ++++---- api-reference/beta/api/worksheet-list.md | 8 ++++---- api-reference/beta/api/worksheet-update.md | 20 +++++++++---------- .../beta/api/worksheetcollection-add.md | 14 ++++++------- .../v1.0/api/workbook-list-worksheets.md | 8 ++++---- api-reference/v1.0/api/worksheet-delete.md | 4 ++-- api-reference/v1.0/api/worksheet-get.md | 8 ++++---- api-reference/v1.0/api/worksheet-list.md | 8 ++++---- api-reference/v1.0/api/worksheet-update.md | 20 +++++++++---------- .../v1.0/api/worksheetcollection-add.md | 12 +++++------ 12 files changed, 61 insertions(+), 61 deletions(-) diff --git a/api-reference/beta/api/workbook-list-worksheets.md b/api-reference/beta/api/workbook-list-worksheets.md index 46e2c4ac2d3..223d22ff119 100644 --- a/api-reference/beta/api/workbook-list-worksheets.md +++ b/api-reference/beta/api/workbook-list-worksheets.md @@ -99,10 +99,10 @@ Content-type: application/json { "value": [ { - "id": "id-value", - "position": 99, - "name": "name-value", - "visibility": "visibility-value" + "id": "{FC034FA8-F8CC-4D24-9C0A-02A81B7792A0}", + "position": 0, + "name": "Sheet1", + "visibility": "Visible" } ] } diff --git a/api-reference/beta/api/worksheet-delete.md b/api-reference/beta/api/worksheet-delete.md index fbe67a8c8cb..e404d0c4c80 100644 --- a/api-reference/beta/api/worksheet-delete.md +++ b/api-reference/beta/api/worksheet-delete.md @@ -41,7 +41,7 @@ DELETE /me/drive/root:/{item-path}:/workbook/worksheets/{id|name} ## Response -If successful, this method returns `200 OK` response code. It doesn't return anything in the response body. +If successful, this method returns `204 No Content` response code. It doesn't return anything in the response body. ## Example Here is an example of how to call this API. @@ -89,7 +89,7 @@ The following example shows the response. "blockType": "response" } --> ```http -HTTP/1.1 200 OK +HTTP/1.1 204 No Content ``` ```http -HTTP/1.1 200 OK +HTTP/1.1 201 Created Content-type: application/json { - "id": "id-value", - "position": 99, - "name": "name-value", - "visibility": "visibility-value" + "id": "{FC034FA8-F8CC-4D24-9C0A-02A81B7792A0}", + "position": 1, + "name": "Sheet1", + "visibility": "Visible" } ``` diff --git a/api-reference/v1.0/api/workbook-list-worksheets.md b/api-reference/v1.0/api/workbook-list-worksheets.md index 76509f74f06..a951fcbe9d2 100644 --- a/api-reference/v1.0/api/workbook-list-worksheets.md +++ b/api-reference/v1.0/api/workbook-list-worksheets.md @@ -97,10 +97,10 @@ Content-type: application/json { "value": [ { - "id": "id-value", - "position": 99, - "name": "name-value", - "visibility": "visibility-value" + "id": "{FC034FA8-F8CC-4D24-9C0A-02A81B7792A0}", + "position": 0, + "name": "Sheet1", + "visibility": "Visible" } ] } diff --git a/api-reference/v1.0/api/worksheet-delete.md b/api-reference/v1.0/api/worksheet-delete.md index 649911e6135..85701739f4b 100644 --- a/api-reference/v1.0/api/worksheet-delete.md +++ b/api-reference/v1.0/api/worksheet-delete.md @@ -39,7 +39,7 @@ DELETE /me/drive/root:/{item-path}:/workbook/worksheets/{id|name} ## Response -If successful, this method returns `200 OK` response code. It doesn't return anything in the response body. +If successful, this method returns `204 No Content` response code. It doesn't return anything in the response body. ## Example Here is an example of how to call this API. @@ -88,7 +88,7 @@ The following example shows the response. "truncated": true } --> ```http -HTTP/1.1 200 OK +HTTP/1.1 204 No Content ``` ```http -HTTP/1.1 200 OK +HTTP/1.1 201 Created Content-type: application/json { - "id": "id-value", - "position": 99, - "name": "name-value", - "visibility": "visibility-value" + "id": "{FC034FA8-F8CC-4D24-9C0A-02A81B7792A0}", + "position": 1, + "name": "Sheet1", + "visibility": "Visible" } ```