Skip to content

Move Sheet

ET edited this page May 21, 2018 · 1 revision
PUT /api/moveSheet

Return the new ordered list of sheets with the specified sheet moved to the new position.

Parameters

JSON Body Parameters

Field Data Type Description
bookId String The id of the current book.
sheetName String The name of the moved sheet.
newPos Integer The new position of the moved sheet.

Request

PUT https://localhost:8080/api/moveSheet
JSON Parameters:
{
    "bookId": "cjfx4leqo",
    "sheetName": "Grade",
    "newPos": 2
}

Response

{
    "status": "success",
    "message": null,
    "data": {
        "sheets": [
            {
                "name": "Student",
                "numRow": 300,
                "numCol": 100
            },
            {
                "name": "Course",
                "numRow": 500,
                "numCol": 50
            },
            {
                "name": "Grade",
                "numRow": 200,
                "numCol": 50
            }
        ]
    }
}

Clone this wiki locally